[readme] Avoid infinite loop in cdnvm()

This commit is contained in:
Tim Connolly
2021-09-22 16:25:28 +10:00
committed by Jordan Harband
parent 11d71ab24b
commit ca897ac6d5

View File

@@ -524,7 +524,7 @@ Put the following at the end of your `$HOME/.bashrc`:
```bash
cdnvm() {
cd "$@";
command cd "$@";
nvm_path=$(nvm_find_up .nvmrc | tr -d '\n')
# If there are no .nvmrc file, use the default nvm version