From 566e9e43ed4a45b7058753cfd034d44d6e078d6d Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sat, 20 Mar 2021 14:55:46 -0400 Subject: [PATCH] ADD rbenv --- dot_config/zsh/dot_zshrc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index 55e27bc..e73ac14 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -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