diff options
author | Cristian Măgherușan-Stanciu <cristian.magherusan-stanciu@here.com> | 2015-07-09 17:41:43 +0200 |
---|---|---|
committer | Roland Chernov <it5@amur.net> | 2015-07-22 15:01:15 +0900 |
commit | 803e5dbb8464088a8d84509077bf6dce9ac26688 (patch) | |
tree | 484cf358d141d5e450fb4355836187aa991f786c /plugins/fuck | |
parent | 0da9a4be25d0feb968b21645a0654ea499f0cc9d (diff) | |
download | zsh-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.zsh | 2 |
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 |