From 959887013dd520f0656d54dbedfb72a70e3263ae Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 20 Aug 2013 08:47:18 -0400 Subject: [PATCH] Simplify a conditional --- modules/utility/init.zsh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index d2137161..91c78090 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -114,9 +114,7 @@ else if (( $+commands[xclip] )); then alias pbcopy='xclip -selection clipboard -in' alias pbpaste='xclip -selection clipboard -out' - fi - - if (( $+commands[xsel] )); then + elif (( $+commands[xsel] )); then alias pbcopy='xsel --clipboard --input' alias pbpaste='xsel --clipboard --output' fi