diff --git a/.zshrc b/.zshrc index 44973bf..e3e40ce 100644 --- a/.zshrc +++ b/.zshrc @@ -60,7 +60,7 @@ find_up () { } command-exists () { - return [[ -n $commands[$1] ]]; + return $(command -v $1 >/dev/null); } #---------------------------------- Tab completion ----------------------------