From 953e6e10a521c16dcadabb5bfcfda12d4d6cf559 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 6 Dec 2011 10:43:45 +0100 Subject: Calls internal zsh 'which' command --- 01_Functions.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '01_Functions.zsh') diff --git a/01_Functions.zsh b/01_Functions.zsh index 4caa5dc..8078203 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -19,11 +19,11 @@ cmd_exists () { - which -p $1 >/dev/null 2>&1 + \which -p $1 >/dev/null 2>&1 } git () { - GIT=$(which -p git) + GIT=$(\which -p git) case $1 in init|clone|config) ;; @@ -38,7 +38,7 @@ git () { ;; esac - $(which -p git) $@ + $(\which -p git) $@ } term_title() -- cgit v1.2.3