Update global directory for npm

This commit is contained in:
ViViDboarder 2019-10-28 18:15:40 -07:00
parent 720d09fdc4
commit 6fc44b46ab
3 changed files with 7 additions and 6 deletions

View File

@ -0,0 +1 @@
prefix=~/.npm

View File

@ -29,6 +29,11 @@ else if [ $det_os = "mac" ]
# set -gx PYTHONPATH /opt/local/Library/Frameworks/Python.framework/Versions/Current/lib/python2.7/site-packages /Library/Python/2.7/site-packages $PYTHONPATH # set -gx PYTHONPATH /opt/local/Library/Frameworks/Python.framework/Versions/Current/lib/python2.7/site-packages /Library/Python/2.7/site-packages $PYTHONPATH
end end
# NPM paths
if type -q npm
set -gx PATH (npm bin -g 2> /dev/null) $PATH
end
# Add rust path # Add rust path
if [ -d "$HOME/.cargo/bin" ] if [ -d "$HOME/.cargo/bin" ]
set -gx PATH $HOME/.cargo/bin $PATH set -gx PATH $HOME/.cargo/bin $PATH
@ -54,12 +59,6 @@ else if [ -d "$HOME/.rvm" ]
source "$HOME/.rvm/scripts/extras/rvm.fish" source "$HOME/.rvm/scripts/extras/rvm.fish"
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 2> /dev/null)
end
# Home paths # Home paths
if [ -d "$HOME/.local/bin" ] if [ -d "$HOME/.local/bin" ]
set -gx PATH $HOME/.local/bin $PATH set -gx PATH $HOME/.local/bin $PATH

View File

@ -5,6 +5,7 @@ try_link "ackrc" "$HOME/.ackrc"
try_link "antrc" "$HOME/.antrc" try_link "antrc" "$HOME/.antrc"
try_link "ctags" "$HOME/.ctags" try_link "ctags" "$HOME/.ctags"
try_link "tigrc" "$HOME/.tigrc" try_link "tigrc" "$HOME/.tigrc"
try_link "npmrc" "$HOME/.npmrc"
try_link "tmux.conf" "$HOME/.tmux.conf" try_link "tmux.conf" "$HOME/.tmux.conf"
# Source files that can # Source files that can