mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-22 03:46:30 +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
|
export PATH=$HOME/bin:$HOME/.local/bin:$PATH
|
||||||
|
|
||||||
# Add RVM to PATH for scripting
|
# 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"
|
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*
|
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
|
||||||
fi
|
fi
|
||||||
|
@ -44,9 +44,11 @@ if [ -d "$android_sdk" ]
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Ruby paths
|
# Ruby paths
|
||||||
# Add RVM to PATH for scripting
|
if type -q rbenv ; and status --is-interactive
|
||||||
if [ -d "$HOME/.rvm" ]
|
source (rbenv init -|psub)
|
||||||
|
else if [ -d "$HOME/.rvm" ]
|
||||||
set -gx PATH $PATH $HOME/.rvm/bin
|
set -gx PATH $PATH $HOME/.rvm/bin
|
||||||
|
source "$HOME/.rvm/scripts/extras/rvm.fish"
|
||||||
end
|
end
|
||||||
|
|
||||||
# NPM paths
|
# NPM paths
|
||||||
|
Loading…
Reference in New Issue
Block a user