Allow perlbrew to be loaded via zstyle
Update ruby documentation regarding RVM
This commit is contained in:
parent
8189577772
commit
209fce2a49
3 changed files with 13 additions and 1 deletions
|
@ -30,6 +30,10 @@ Perlbrew
|
||||||
An alternative to the above is to use [Perlbrew][2], which allows for the
|
An alternative to the above is to use [Perlbrew][2], which allows for the
|
||||||
management of multiple, isolated Perl installations in the home directory.
|
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
|
Aliases
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,13 @@ if [[ "$OSTYPE" == darwin* ]]; then
|
||||||
|
|
||||||
unset perl_path
|
unset perl_path
|
||||||
unset cache_file
|
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
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -18,7 +18,8 @@ allows for managing multiple, isolated Ruby installations and gem sets in the
|
||||||
home directory.
|
home directory.
|
||||||
|
|
||||||
Since RVM is loaded into the shell and is known to override shell commands, it
|
Since RVM is loaded into the shell and is known to override shell commands, it
|
||||||
may conflict with shell scripts.
|
may conflict with shell scripts. It may be best to load the ruby module last
|
||||||
|
given that RVM needs to be injected into $PATH as the first element.
|
||||||
|
|
||||||
rbenv
|
rbenv
|
||||||
-----
|
-----
|
||||||
|
|
Loading…
Add table
Reference in a new issue