Fix how command existance is tested
This commit is contained in:
parent
99757998b5
commit
3c28cf23af
2
.zshrc
2
.zshrc
@ -60,7 +60,7 @@ find_up () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
command-exists () {
|
command-exists () {
|
||||||
return [[ -n $commands[$1] ]];
|
return $(command -v $1 >/dev/null);
|
||||||
}
|
}
|
||||||
|
|
||||||
#---------------------------------- Tab completion ----------------------------
|
#---------------------------------- Tab completion ----------------------------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user