Add npm paths

This commit is contained in:
ViViDboarder 2018-04-05 16:10:38 -07:00
parent e0a0205b73
commit 743fda9641
2 changed files with 12 additions and 0 deletions

View File

@ -60,6 +60,12 @@ if [ -d "$HOME/.rvm" ]; then
[[ -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
# NPM paths
# On mac the path should already be taken care of
if type npm &> /dev/null && [ $DET_OS != "mac" ]; then
export PATH=$PATH:$(npm bin -g)
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

@ -48,5 +48,11 @@ if [ -d "$HOME/.rvm" ]
set -gx PATH $PATH $HOME/.rvm/bin set -gx PATH $PATH $HOME/.rvm/bin
end end
# NPM paths
# On mac the path should already be taken care of
if type -q npm ; and [ $det_os != "mac" ]
set -gx PATH $PATH (npm bin -g)
end
# Home path # Home path
set -gx PATH $HOME/bin $HOME/.local/bin $PATH set -gx PATH $HOME/bin $HOME/.local/bin $PATH