Browse Source

Simplify a conditional

master
Sorin Ionescu 11 years ago
parent
commit
959887013d
  1. 4
      modules/utility/init.zsh

4
modules/utility/init.zsh

@ -114,9 +114,7 @@ else
if (( $+commands[xclip] )); then if (( $+commands[xclip] )); then
alias pbcopy='xclip -selection clipboard -in' alias pbcopy='xclip -selection clipboard -in'
alias pbpaste='xclip -selection clipboard -out' alias pbpaste='xclip -selection clipboard -out'
fi elif (( $+commands[xsel] )); then
if (( $+commands[xsel] )); then
alias pbcopy='xsel --clipboard --input' alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output' alias pbpaste='xsel --clipboard --output'
fi fi

Loading…
Cancel
Save