summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc5
1 files changed, 2 insertions, 3 deletions
diff --git a/bashrc b/bashrc
index 51c83c0..03a45f5 100644
--- a/bashrc
+++ b/bashrc
@@ -326,17 +326,16 @@ export PS1="\[\$__error_color\]\$__error \[${HIYELLOW}\][\t] \[${HIGREEN}\]\u@\h
# set the correct perl {{{
if type -a perlbrew > /dev/null 2>&1; then
function _setup_perlbrew {
- . ${HOME}/.perlbrew/init
local perl=$PERLBREW_PERL
[ -z $perl ] && perl="$(readlink ${HOME}/perl5/perlbrew/perls/current)"
local pwd="${PWD#${HOME}}/"
if [[ "${pwd:0:6}" == "/work/" ]]; then
if [[ "$perl" != "work-perl" ]]; then
- perlbrew switch work-perl
+ perlbrew use work-perl
fi
else
if [[ "$perl" == "work-perl" ]]; then
- perlbrew switch perl-5.10.1
+ perlbrew use perl-5.10.1
fi
fi
}