ADD rbenv

This commit is contained in:
Nathan Dwarshuis 2021-03-20 14:55:46 -04:00
parent 7c5104b52f
commit 566e9e43ed
1 changed files with 10 additions and 1 deletions

View File

@ -290,9 +290,18 @@ man() {
}
## --------------------------------------------------
## Python
## Python/Ruby Virtual Environments
## --------------------------------------------------
# both of these languages have similar setups for their virtual envs which
# involve a) adding a "shims" directory to PATH and then b) adding some shell
# magic to automatically call the shims
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init - | sed '/PATH/d' -)"
eval "$(pyenv virtualenv-init - | sed '/PATH/d' -)"
fi
if command -v rbenv 1>/dev/null 2>&1; then
eval "$(rbenv init - | sed '/PATH/d' -)"
fi