mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-15 21:16:45 +08:00
Merge branch 'master' into clipboard
This commit is contained in:
261 files changed
+5589
-2781
No files matched your search
+1
-1
@@ -54,7 +54,7 @@ function detect-clipboard() {
|
||||
if [[ "${OSTYPE}" == darwin* ]] && (( ${+commands[pbcopy]} )) && (( ${+commands[pbpaste]} )); then
|
||||
function clipcopy() { pbcopy < "${1:-/dev/stdin}"; }
|
||||
function clippaste() { pbpaste; }
|
||||
elif [[ "${OSTYPE}" == cygwin* ]]; then
|
||||
elif [[ "${OSTYPE}" == (cygwin|msys)* ]]; then
|
||||
function clipcopy() { cat "${1:-/dev/stdin}" > /dev/clipboard; }
|
||||
function clippaste() { cat /dev/clipboard; }
|
||||
elif [ -n "${WAYLAND_DISPLAY:-}" ] && (( ${+commands[wl-copy]} )) && (( ${+commands[wl-paste]} )); then
|
||||
|
||||
Reference in new issue
Block a user