Update rvm and add rbenv

This commit is contained in:
ViViDboarder 2019-06-12 11:06:33 -07:00
parent 0297379eac
commit 7a8fb3370e
2 changed files with 8 additions and 3 deletions

View File

@ -55,7 +55,10 @@ fi
export PATH=$HOME/bin:$HOME/.local/bin:$PATH
# Add RVM to PATH for scripting
if [ -d "$HOME/.rvm" ]; then
if type rbenv &> /dev/null; then
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
elif [ -d "$HOME/.rvm" ]; then
export PATH="$PATH:$HOME/.rvm/bin"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
fi

View File

@ -44,9 +44,11 @@ if [ -d "$android_sdk" ]
end
# Ruby paths
# Add RVM to PATH for scripting
if [ -d "$HOME/.rvm" ]
if type -q rbenv ; and status --is-interactive
source (rbenv init -|psub)
else if [ -d "$HOME/.rvm" ]
set -gx PATH $PATH $HOME/.rvm/bin
source "$HOME/.rvm/scripts/extras/rvm.fish"
end
# NPM paths