mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 06:27:21 +01:00
change to using a ~/local directory for node modules and executables
This commit is contained in:
13
zshrc
13
zshrc
@@ -30,14 +30,9 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
|
|
||||||
# Customize to your needs...
|
# Customize to your needs...
|
||||||
|
|
||||||
# set PATH so it includes user's private bin if it exists
|
# use $HOME/local as default prefix for npm global installs
|
||||||
if [ -d "$HOME/bin" ] ; then
|
HOME_LOCAL=$HOME/local
|
||||||
PATH="$HOME/bin:$PATH"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# local node install
|
if [ -d "$HOME_LOCAL/bin" ] ; then
|
||||||
NODE_PATH="$HOME/.nave/current"
|
PATH="$HOME_LOCAL/bin:$PATH"
|
||||||
if [ -d $NODE_PATH ] ; then
|
|
||||||
PATH="$NODE_PATH/bin:$PATH"
|
|
||||||
export NODE_PATH
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user