Skip to content

Commit

Permalink
zsh prompts get interfered with environment variables that are named the
Browse files Browse the repository at this point in the history
directory you are in. Don't define START unless we need to.

(Thanks cgcardona)

Change-Id: I256a4db0af9b40b64bc0fe8d6e393f614132db68
  • Loading branch information
Tim Caswell committed Dec 10, 2010
1 parent b69a2b7 commit 077a661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export NVM_DIR=$(dirname ${BASH_ARGV[0]})

nvm()
{
START=`pwd`
if [ $# -lt 1 ]; then
nvm help
return
Expand All @@ -37,6 +36,7 @@ nvm()
nvm help
return;
fi
START=`pwd`
mkdir -p "$NVM_DIR/src" && \
cd "$NVM_DIR/src" && \
wget "http://nodejs.org/dist/node-$2.tar.gz" -N && \
Expand Down

0 comments on commit 077a661

Please sign in to comment.