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 export PATH=$HOME/bin:$HOME/.local/bin:$PATH
# Add RVM to PATH for scripting # Add RVM to PATH for scripting
export PATH=$PATH:$HOME/.rvm/bin if [ -d "$HOME/.rvm" ]; then
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* 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 # Increase memory sizes for java using Ant
ANT_OPTS="-Xmx2048m -Xms512m" ANT_OPTS="-Xmx2048m -Xms512m"

View File

@ -25,6 +25,7 @@ else if [ $det_os = "mac" ]
# set PATH $HOME/Library/Python/2.7/bin $PATH # set PATH $HOME/Library/Python/2.7/bin $PATH
# Fix Python path on OSX to avoid considering System extras over newer versions # 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 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 end
# Google GO # Google GO
@ -38,5 +39,11 @@ if [ -d "$android_sdk" ]
set -gx PATH $PATH $android_sdk/platform-tools $android_sdk/tools set -gx PATH $PATH $android_sdk/platform-tools $android_sdk/tools
end end
# Ruby paths
# Add RVM to PATH for scripting
if [ -d "$HOME/.rvm" ]
set -gx PATH $PATH $HOME/.rvm/bin
end
# Home path # Home path
set -gx PATH $HOME/bin $HOME/.local/bin $PATH set -gx PATH $HOME/bin $HOME/.local/bin $PATH