summaryrefslogtreecommitdiff
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
parentfb844d09035578a8c40137567cd8bf2961a5db70 (diff)
Calls internal zsh 'which' command
-rw-r--r--01_Functions.zsh6
-rw-r--r--user:hugues/Environment.zsh2
2 files changed, 4 insertions, 4 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()
diff --git a/user:hugues/Environment.zsh b/user:hugues/Environment.zsh
index bfb341d..6dc32aa 100644
--- a/user:hugues/Environment.zsh
+++ b/user:hugues/Environment.zsh
@@ -23,7 +23,7 @@ export GIT_COMMITTER_NAME=$FULLNAME
export BC_ENV_ARGS="-q"
## Editeur par défaut
-export EDITOR=`which -p vim || which -p vi || which -p emacs`
+export EDITOR=`\which -p vim || \which -p vi || \which -p emacs`
export VISUAL=$EDITOR
export FCEDIT=$EDITOR