mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-21 21:36:31 +00:00
Update rvm and add rbenv
This commit is contained in:
parent
0297379eac
commit
7a8fb3370e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user