Fix how command existance is tested

This commit is contained in:
Paweł Płazieński 2016-10-15 22:13:54 +02:00
parent 99757998b5
commit 3c28cf23af

2
.zshrc
View File

@ -60,7 +60,7 @@ find_up () {
} }
command-exists () { command-exists () {
return [[ -n $commands[$1] ]]; return $(command -v $1 >/dev/null);
} }
#---------------------------------- Tab completion ---------------------------- #---------------------------------- Tab completion ----------------------------