summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-01-11 02:42:51 -0600
committerJesse Luehrs <doy@tozt.net>2011-01-11 02:52:31 -0600
commit1379c2899cfeb726b24d1e69181ec5cf81a05d5f (patch)
tree4e1e328e2deff31571515f443a2f104bf6ccdb83 /bashrc
parent4e6826ea421fc1718ea726f2699642389a000242 (diff)
downloadconf-1379c2899cfeb726b24d1e69181ec5cf81a05d5f.tar.gz
conf-1379c2899cfeb726b24d1e69181ec5cf81a05d5f.zip
stop using which inappropriately
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc4
1 files changed, 2 insertions, 2 deletions
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}}/"