d81cd753e0b3a845e8f3549da245dbad102a6e4c
- Author
- Robert Estelle <robertestelle@gmail.com>
- Committer
- Robert Estelle <robertestelle@gmail.com>
- Date
Message
clipboard: Fix bad expansion of exit-code test
Diff
1diff --git a/lib/clipboard.zsh b/lib/clipboard.zsh
2index 5001f469562058ae0379dd11a15b19e1506ec9da..333f58dd88fbcc80377c3ed8b7e14c868e808493 100644
3--- a/lib/clipboard.zsh
4+++ b/lib/clipboard.zsh
5@@ -63,7 +63,7 @@ function detect-clipboard() {
6 elif [ -n "${DISPLAY:-}" ] && (( ${+commands[xclip]} )); then
7 function clipcopy() { xclip -in -selection clipboard < "${1:-/dev/stdin}"; }
8 function clippaste() { xclip -out -selection clipboard; }
9- elif [ -n "${DISPLAY:-}" ] && $(( ${+commands[xsel]} )); then
10+ elif [ -n "${DISPLAY:-}" ] && (( ${+commands[xsel]} )); then
11 function clipcopy() { xsel --clipboard --input < "${1:-/dev/stdin}"; }
12 function clippaste() { xsel --clipboard --output; }
13 elif (( ${+commands[lemonade]} )); then