diff options
author | Andras Svraka <svraka.andras@gmail.com> | 2020-01-16 18:19:56 +0100 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2020-01-16 18:19:56 +0100 |
commit | 56297902e9d0f7a14f6d4d88b24eaea7392f3c32 (patch) | |
tree | dcdceb1928e9faad785a133419854684c71c039b | |
parent | aaa87063a27cd581b5f0fa1f23a0170f623686a9 (diff) | |
download | zsh-56297902e9d0f7a14f6d4d88b24eaea7392f3c32.tar.gz zsh-56297902e9d0f7a14f6d4d88b24eaea7392f3c32.tar.bz2 zsh-56297902e9d0f7a14f6d4d88b24eaea7392f3c32.zip |
lib: add MSYS2 support to clipboard integration (#8542)
-rw-r--r-- | lib/clipboard.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/clipboard.zsh b/lib/clipboard.zsh index 2c93d1bb5..5bba11d16 100644 --- a/lib/clipboard.zsh +++ b/lib/clipboard.zsh @@ -24,7 +24,7 @@ function clipcopy() { else cat $file | pbcopy fi - elif [[ $OSTYPE == cygwin* ]]; then + elif [[ $OSTYPE == (cygwin|msys)* ]]; then if [[ -z $file ]]; then cat > /dev/clipboard else @@ -71,7 +71,7 @@ function clippaste() { emulate -L zsh if [[ $OSTYPE == darwin* ]]; then pbpaste - elif [[ $OSTYPE == cygwin* ]]; then + elif [[ $OSTYPE == (cygwin|msys)* ]]; then cat /dev/clipboard else if (( $+commands[xclip] )); then |