1
0
Fork 0

Allow to specify perlbrew location to load it into the environment

pull/555/head
Patrick Baker 11 years ago
parent 8189577772
commit 84fc14fcaf

@ -30,6 +30,10 @@ Perlbrew
An alternative to the above is to use [Perlbrew][2], which allows for the
management of multiple, isolated Perl installations in the home directory.
You can specify the perlbrew location so the environment is automatically loaded.
zstyle ':prezto:module:perl:perlbrew' location '/path/to/perlbrew'
Aliases
-------

@ -29,6 +29,13 @@ if [[ "$OSTYPE" == darwin* ]]; then
unset perl_path
unset cache_file
# Perlbrew
zstyle -s ':prezto:module:perl:perlbrew' location '_perlbrew_root'
if [[ -s "${_perlbrew_root}/etc/bashrc" ]]; then
export PERLBREW_ROOT="${_perlbrew_root}"
source "${_perlbrew_root}/etc/bashrc"
fi
fi
#

Loading…
Cancel
Save