diff options
author | Robert Estelle <robertestelle@gmail.com> | 2019-07-14 12:56:48 -0400 |
---|---|---|
committer | Robert Estelle <robertestelle@gmail.com> | 2019-07-14 12:56:51 -0400 |
commit | d81cd753e0b3a845e8f3549da245dbad102a6e4c (patch) | |
tree | 7c0513dd812fa09eb68b189a54e672a82cf61881 /lib/clipboard.zsh | |
parent | 841008c947d5fbe780111539804945c46dcdfaf4 (diff) | |
download | zsh-d81cd753e0b3a845e8f3549da245dbad102a6e4c.tar.gz zsh-d81cd753e0b3a845e8f3549da245dbad102a6e4c.tar.bz2 zsh-d81cd753e0b3a845e8f3549da245dbad102a6e4c.zip |
clipboard: Fix bad expansion of exit-code test
Diffstat (limited to 'lib/clipboard.zsh')
-rw-r--r-- | lib/clipboard.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/clipboard.zsh b/lib/clipboard.zsh index 5001f4695..333f58dd8 100644 --- a/lib/clipboard.zsh +++ b/lib/clipboard.zsh @@ -63,7 +63,7 @@ function detect-clipboard() { elif [ -n "${DISPLAY:-}" ] && (( ${+commands[xclip]} )); then function clipcopy() { xclip -in -selection clipboard < "${1:-/dev/stdin}"; } function clippaste() { xclip -out -selection clipboard; } - elif [ -n "${DISPLAY:-}" ] && $(( ${+commands[xsel]} )); then + elif [ -n "${DISPLAY:-}" ] && (( ${+commands[xsel]} )); then function clipcopy() { xsel --clipboard --input < "${1:-/dev/stdin}"; } function clippaste() { xsel --clipboard --output; } elif (( ${+commands[lemonade]} )); then |