Because ubuntu seems to have NVM_DIR set to /usr/sbin

This commit is contained in:
Lloyd Watkin 2014-07-24 22:50:45 +01:00
parent 68574cc7e8
commit 8eb479eae2

View File

@ -7,7 +7,7 @@ nvm_has() {
return $?
}
if [ -z "$NVM_DIR" ]; then
if [ -z "$NVM_DIR" ] || [[ -n $(uname -a | grep Ubuntu) ]]; then
NVM_DIR="$HOME/.nvm"
fi