improved the check for availability

This commit is contained in:
Cristian Măgherușan-Stanciu 2015-07-09 17:41:43 +02:00
commit a486e4bd99

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