zsh prompts get interfered with environment variables that are named the
directory you are in. Don't define START unless we need to. (Thanks cgcardona) Change-Id: I256a4db0af9b40b64bc0fe8d6e393f614132db68master
parent
b69a2b7fc3
commit
077a661696
2
nvm.sh
2
nvm.sh
|
@ -10,7 +10,6 @@ export NVM_DIR=$(dirname ${BASH_ARGV[0]})
|
||||||
|
|
||||||
nvm()
|
nvm()
|
||||||
{
|
{
|
||||||
START=`pwd`
|
|
||||||
if [ $# -lt 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
nvm help
|
nvm help
|
||||||
return
|
return
|
||||||
|
@ -37,6 +36,7 @@ nvm()
|
||||||
nvm help
|
nvm help
|
||||||
return;
|
return;
|
||||||
fi
|
fi
|
||||||
|
START=`pwd`
|
||||||
mkdir -p "$NVM_DIR/src" && \
|
mkdir -p "$NVM_DIR/src" && \
|
||||||
cd "$NVM_DIR/src" && \
|
cd "$NVM_DIR/src" && \
|
||||||
wget "http://nodejs.org/dist/node-$2.tar.gz" -N && \
|
wget "http://nodejs.org/dist/node-$2.tar.gz" -N && \
|
||||||
|
|
Loading…
Reference in New Issue