summaryrefslogtreecommitdiff
path: root/plugins/fuck
diff options
context:
space:
mode:
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