From 1379c2899cfeb726b24d1e69181ec5cf81a05d5f Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 11 Jan 2011 02:42:51 -0600 Subject: stop using which inappropriately --- bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bashrc') diff --git a/bashrc b/bashrc index b010b5b..fb0e886 100644 --- a/bashrc +++ b/bashrc @@ -23,7 +23,7 @@ export TEXINPUTS=".:${HOME}/conf/tex:" export LESS='-QR' export NOPASTE_SERVICES="Codepeek PastebinCom Rafb Shadowcat Pastie Husk" export PERL_CPANM_OPT="--mirror file://${HOME}/perl5/minicpan/ --mirror http://mirrors.kernel.org/cpan/ --mirror http://search.cpan.org/CPAN --prompt --skip-installed" -[ -x `which git` ] && export GIT_EXEC_PATH="${HOME}/.bin/git:"`git --exec-path` +type -P git > /dev/null 2>&1 && export GIT_EXEC_PATH="${HOME}/.bin/git:"`git --exec-path` [ -x /usr/bin/lesspipe ] && export LESSOPEN='|/usr/bin/lesspipe %s' [ -x /usr/bin/lesspipe.sh ] && export LESSOPEN='|/usr/bin/lesspipe.sh %s' [ -f $HOME/perl5/perlbrew/etc/bashrc ] && source $HOME/perl5/perlbrew/etc/bashrc @@ -328,7 +328,7 @@ export PROMPT_COMMAND="_set_error;_set_vcs;$PROMPT_COMMAND" export PS1="\[\$__error_color\]\$__error \[${HIYELLOW}\][\t] \[${HIGREEN}\]\u@\h \[${HIBLUE}\]\W\[${CYAN}\]\$__vcs \[${HIBLUE}\]\\$\[${NORM}\] " # }}} # set the correct perl {{{ -if [ -x $(which perlbrew) ]; then +if type -a perlbrew > /dev/null 2>&1; then function _setup_perlbrew { local perl="$(readlink ${HOME}/perl5/perlbrew/perls/current)" local pwd="${PWD#${HOME}}/" -- cgit v1.2.3-54-g00ecf