[readme] Avoid infinite loop in cdnvm()

Tim Connolly 2021-09-22 16:25:28 +10:00 committed by Jordan Harband
parent 11d71ab24b
commit ca897ac6d5
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
1 changed files with 1 additions and 1 deletions

View File

@ -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