Fix paths for rvm and pip

This commit is contained in:
ViViDboarder 2017-11-16 10:22:02 -08:00
parent 784e229418
commit cd1155792b
2 changed files with 11 additions and 2 deletions

View File

@ -55,8 +55,10 @@ fi
export PATH=$HOME/bin:$HOME/.local/bin:$PATH
# Add RVM to PATH for scripting
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*
if [ -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
# Increase memory sizes for java using Ant
ANT_OPTS="-Xmx2048m -Xms512m"

View File

@ -25,6 +25,7 @@ else if [ $det_os = "mac" ]
# set PATH $HOME/Library/Python/2.7/bin $PATH
# Fix Python path on OSX to avoid considering System extras over newer versions
set -gx PYTHONPATH /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages:$PYTHONPATH
set -gx PATH $PATH /opt/local/Library/Frameworks/Python.framework/Versions/Current/bin
end
# Google GO
@ -38,5 +39,11 @@ if [ -d "$android_sdk" ]
set -gx PATH $PATH $android_sdk/platform-tools $android_sdk/tools
end
# Ruby paths
# Add RVM to PATH for scripting
if [ -d "$HOME/.rvm" ]
set -gx PATH $PATH $HOME/.rvm/bin
end
# Home path
set -gx PATH $HOME/bin $HOME/.local/bin $PATH