mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-21 21:46:34 +00:00
Update global directory for npm
This commit is contained in:
parent
720d09fdc4
commit
6fc44b46ab
1
assets/default/dotfiles/npmrc
Normal file
1
assets/default/dotfiles/npmrc
Normal file
@ -0,0 +1 @@
|
||||
prefix=~/.npm
|
@ -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
|
||||
end
|
||||
|
||||
# NPM paths
|
||||
if type -q npm
|
||||
set -gx PATH (npm bin -g 2> /dev/null) $PATH
|
||||
end
|
||||
|
||||
# Add rust path
|
||||
if [ -d "$HOME/.cargo/bin" ]
|
||||
set -gx PATH $HOME/.cargo/bin $PATH
|
||||
@ -54,12 +59,6 @@ else if [ -d "$HOME/.rvm" ]
|
||||
source "$HOME/.rvm/scripts/extras/rvm.fish"
|
||||
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
|
||||
if [ -d "$HOME/.local/bin" ]
|
||||
set -gx PATH $HOME/.local/bin $PATH
|
||||
|
@ -5,6 +5,7 @@ try_link "ackrc" "$HOME/.ackrc"
|
||||
try_link "antrc" "$HOME/.antrc"
|
||||
try_link "ctags" "$HOME/.ctags"
|
||||
try_link "tigrc" "$HOME/.tigrc"
|
||||
try_link "npmrc" "$HOME/.npmrc"
|
||||
try_link "tmux.conf" "$HOME/.tmux.conf"
|
||||
|
||||
# Source files that can
|
||||
|
Loading…
Reference in New Issue
Block a user