summaryrefslogtreecommitdiff
path: root/plugins/fuck
diff options
context:
space:
mode:
authorCristian Măgherușan-Stanciu <cristian.magherusan-stanciu@here.com>2015-07-09 17:41:43 +0200
committerRoland Chernov <it5@amur.net>2015-07-22 15:01:15 +0900
commit803e5dbb8464088a8d84509077bf6dce9ac26688 (patch)
tree484cf358d141d5e450fb4355836187aa991f786c /plugins/fuck
parent0da9a4be25d0feb968b21645a0654ea499f0cc9d (diff)
downloadzsh-803e5dbb8464088a8d84509077bf6dce9ac26688.tar.gz
zsh-803e5dbb8464088a8d84509077bf6dce9ac26688.tar.bz2
zsh-803e5dbb8464088a8d84509077bf6dce9ac26688.zip
improved the check for availability
Diffstat (limited to 'plugins/fuck')
-rw-r--r--plugins/fuck/fuck.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/fuck/fuck.plugin.zsh b/plugins/fuck/fuck.plugin.zsh
index 1a3b474fc..cbf8c09ce 100644
--- a/plugins/fuck/fuck.plugin.zsh
+++ b/plugins/fuck/fuck.plugin.zsh
@@ -1,4 +1,4 @@
-if [ $commands[thefuck] ]; then
+if [[ -n $commands[thefuck] ]]; then
alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
alias FUCK='fuck'
else