]> arthur.barton.de Git - OhMyZshExtensions.git/blobdiff - plugins/thefuck/thefuck.plugin.zsh
Change plugins to not do anything if tool isn't available
[OhMyZshExtensions.git] / plugins / thefuck / thefuck.plugin.zsh
index 4042544c7173256d1ec4c3e02f84621d6aa6812a..754d342168bb94615b0d5f50fa717736c30150ba 100644 (file)
@@ -1,3 +1,5 @@
 # thefuck.plugin.zsh
 
-alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
+if (( $+commands[thefuck] )); then
+       alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
+fi