improved the check for availability

This commit is contained in:
Cristian Măgherușan-Stanciu authored and Roland Chernov committed 2015-07-22 15:01:15 +09:00
1 parent 0da9a4be25
commit 803e5dbb84
1 file changed
+1 -1
+1 -1
View File
@@ -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