Commit d81cd753 authored by Robert Estelle's avatar Robert Estelle
Browse files

clipboard: Fix bad expansion of exit-code test

parent 841008c9
...@@ -63,7 +63,7 @@ function detect-clipboard() { ...@@ -63,7 +63,7 @@ function detect-clipboard() {
elif [ -n "${DISPLAY:-}" ] && (( ${+commands[xclip]} )); then elif [ -n "${DISPLAY:-}" ] && (( ${+commands[xclip]} )); then
function clipcopy() { xclip -in -selection clipboard < "${1:-/dev/stdin}"; } function clipcopy() { xclip -in -selection clipboard < "${1:-/dev/stdin}"; }
function clippaste() { xclip -out -selection clipboard; } 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 clipcopy() { xsel --clipboard --input < "${1:-/dev/stdin}"; }
function clippaste() { xsel --clipboard --output; } function clippaste() { xsel --clipboard --output; }
elif (( ${+commands[lemonade]} )); then elif (( ${+commands[lemonade]} )); then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment