summaryrefslogtreecommitdiff
path: root/01_Functions.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2011-12-06 10:43:45 +0100
committerHugues Hiegel <hugues.hiegel@qosmos.com>2011-12-06 10:43:45 +0100
commit953e6e10a521c16dcadabb5bfcfda12d4d6cf559 (patch)
treed282aea8e800b179f7d4c07214a268f7ea2a2217 /01_Functions.zsh
parentfb844d09035578a8c40137567cd8bf2961a5db70 (diff)
Calls internal zsh 'which' command
Diffstat (limited to '01_Functions.zsh')
-rw-r--r--01_Functions.zsh6
1 files changed, 3 insertions, 3 deletions
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()