[readme] Avoid infinite loop in cdnvm()
parent
11d71ab24b
commit
ca897ac6d5
|
@ -524,7 +524,7 @@ Put the following at the end of your `$HOME/.bashrc`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cdnvm() {
|
cdnvm() {
|
||||||
cd "$@";
|
command cd "$@";
|
||||||
nvm_path=$(nvm_find_up .nvmrc | tr -d '\n')
|
nvm_path=$(nvm_find_up .nvmrc | tr -d '\n')
|
||||||
|
|
||||||
# If there are no .nvmrc file, use the default nvm version
|
# If there are no .nvmrc file, use the default nvm version
|
||||||
|
|
Loading…
Reference in New Issue