From 6eb31533615e06e7701c075398cafa13658c52fe Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 24 Jan 2012 16:16:29 +0100 Subject: Revert "Calls internal zsh 'which' command" This reverts commit 953e6e10a521c16dcadabb5bfcfda12d4d6cf559. --- 00_Sanity.zsh | 3 +++ 01_Functions.zsh | 6 +++--- user:hugues/Environment.zsh | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/00_Sanity.zsh b/00_Sanity.zsh index 3c00329..dc63a60 100644 --- a/00_Sanity.zsh +++ b/00_Sanity.zsh @@ -17,3 +17,6 @@ umask 027 # sanity [[ -t 0 ]] && /bin/stty erase "^H" intr "^C" susp "^Z" dsusp "^Y" stop "^S" start "^Q" kill "^U" >& /dev/null +# unalias shitty alias +unalias which + diff --git a/01_Functions.zsh b/01_Functions.zsh index 3b49825..3f6f579 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 6dc32aa..bfb341d 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