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 +++--- user:hugues/Environment.zsh | 2 +- 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 -- cgit v1.2.3