From 3c28cf23af478caafb18a02a5ab55babfc262a4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Sat, 15 Oct 2016 22:13:54 +0200 Subject: [PATCH] Fix how command existance is tested --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ----------------------------