1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-01 16:19:26 +00:00

Compare commits

...

1 Commits

Author SHA1 Message Date
72f8d15b21 Allow perlbrew environment to be loaded via zstyle 2014-02-17 23:40:39 -05:00
2 changed files with 11 additions and 0 deletions

View File

@ -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
-------

View File

@ -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
#