summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-01-18 21:48:44 -0600
committerJesse Luehrs <doy@tozt.net>2011-01-18 21:48:44 -0600
commite49975aef1bc853d6d8588cb003d4bf954f650b5 (patch)
tree7cbadc63845144991165b6f674e4e97e5112bada /bashrc
parent698a2772d10be449d05dd5db06b374f823a7a571 (diff)
downloadconf-e49975aef1bc853d6d8588cb003d4bf954f650b5.tar.gz
conf-e49975aef1bc853d6d8588cb003d4bf954f650b5.zip
internals of perlbrew have changed
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index fb0e886..27e597a 100644
--- a/bashrc
+++ b/bashrc
@@ -330,7 +330,9 @@ 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 {
- local perl="$(readlink ${HOME}/perl5/perlbrew/perls/current)"
+ . ${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