summaryrefslogtreecommitdiff
path: root/plugins/sfffe/sfffe.plugin.zsh
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2020-05-26 17:59:45 +0200
committerMarc Cornellà <marc.cornella@live.com>2020-05-26 18:05:12 +0200
commit2d6965f85645ea489b0adf8ce6a79dd55036d883 (patch)
tree9cadac649f6f277f80fca843b816cde9c9df138b /plugins/sfffe/sfffe.plugin.zsh
parent68d51bd7d83050589ca602059a6e2fb26c2cec39 (diff)
downloadzsh-2d6965f85645ea489b0adf8ce6a79dd55036d883.tar.gz
zsh-2d6965f85645ea489b0adf8ce6a79dd55036d883.tar.bz2
zsh-2d6965f85645ea489b0adf8ce6a79dd55036d883.zip
Fix load of various plugins: fastfile, keychain, sfffe, stack
Diffstat (limited to 'plugins/sfffe/sfffe.plugin.zsh')
-rw-r--r--plugins/sfffe/sfffe.plugin.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sfffe/sfffe.plugin.zsh b/plugins/sfffe/sfffe.plugin.zsh
index a0f034908..177e5fa2f 100644
--- a/plugins/sfffe/sfffe.plugin.zsh
+++ b/plugins/sfffe/sfffe.plugin.zsh
@@ -6,9 +6,9 @@
# REQUIRE: ack
# ------------------------------------------------------------------------------
-if [ ! -x $(which ack) ]; then
- echo \'ack\' is not installed!
- exit -1
+if (( ! $+commands[ack] )); then
+ echo "'ack' is not installed!"
+ return
fi
ajs() {