[readme] updated automatic call script for bash
Bash terminal was throwing error: `bash: cd: too many arguments` when directory had some spaces in the name. The quotes around `$PWD` fixes this issue
parent
b6b6e685a3
commit
cc6915e216
|
@ -566,7 +566,7 @@ cdnvm() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
alias cd='cdnvm'
|
alias cd='cdnvm'
|
||||||
cd $PWD
|
cd "$PWD"
|
||||||
```
|
```
|
||||||
|
|
||||||
This alias would search 'up' from your current directory in order to detect a `.nvmrc` file. If it finds it, it will switch to that version; if not, it will use the default version.
|
This alias would search 'up' from your current directory in order to detect a `.nvmrc` file. If it finds it, it will switch to that version; if not, it will use the default version.
|
||||||
|
|
Loading…
Reference in New Issue