803e5dbb8464088a8d84509077bf6dce9ac26688
- Author
- Cristian Măgherușan-Stanciu <cristian.magherusan-stanciu@here.com>
- Committer
- Roland Chernov <it5@amur.net>
- Date
Message
improved the check for availability
Diff
1diff --git a/plugins/fuck/fuck.plugin.zsh b/plugins/fuck/fuck.plugin.zsh
2index 1a3b474fc7d7b0113addda50ec1ee63f07a2c871..cbf8c09ce027bb36639e8576c55ebf7a97e697e6 100644
3--- a/plugins/fuck/fuck.plugin.zsh
4+++ b/plugins/fuck/fuck.plugin.zsh
5@@ -1,4 +1,4 @@
6-if [ $commands[thefuck] ]; then
7+if [[ -n $commands[thefuck] ]]; then
8 alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
9 alias FUCK='fuck'
10 else