From 85c3a92eb47211144d6b50cf71e00f49e9de0f4b Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Wed, 1 Aug 2012 23:58:57 +0200 Subject: [PATCH] support for node installed in home dir with nave --- zshrc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 312abe5..d039c0d 100644 --- a/zshrc +++ b/zshrc @@ -29,4 +29,15 @@ plugins=(git svn debian npm node) source $ZSH/oh-my-zsh.sh # Customize to your needs... -export PATH=~/bin:$PATH + +# set PATH so it includes user's private bin if it exists +if [ -d "$HOME/bin" ] ; then + PATH="$HOME/bin:$PATH" +fi + +# local node install +NODE_PATH="$HOME/.nave/current" +if [ -d $NODE_PATH ] ; then + PATH="$NODE_PATH/bin:$PATH" + export NODE_PATH +fi