56297902e9d0f7a14f6d4d88b24eaea7392f3c32
- Author
- Andras Svraka <svraka.andras@gmail.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
lib: add MSYS2 support to clipboard integration (#8542)
Diff
1diff --git a/lib/clipboard.zsh b/lib/clipboard.zsh
2index 2c93d1bb5c3a2af2cca739b96e46c6dbb38d6dd3..5bba11d1642eb59851c3c3e60399ba8e42a00925 100644
3--- a/lib/clipboard.zsh
4+++ b/lib/clipboard.zsh
5@@ -24,7 +24,7 @@ function clipcopy() {
6 else
7 cat $file | pbcopy
8 fi
9- elif [[ $OSTYPE == cygwin* ]]; then
10+ elif [[ $OSTYPE == (cygwin|msys)* ]]; then
11 if [[ -z $file ]]; then
12 cat > /dev/clipboard
13 else
14@@ -71,7 +71,7 @@ function clippaste() {
15 emulate -L zsh
16 if [[ $OSTYPE == darwin* ]]; then
17 pbpaste
18- elif [[ $OSTYPE == cygwin* ]]; then
19+ elif [[ $OSTYPE == (cygwin|msys)* ]]; then
20 cat /dev/clipboard
21 else
22 if (( $+commands[xclip] )); then