Skip to content

Commit ca897ac

Browse files
tim-connollyljharb
authored andcommitted
[readme] Avoid infinite loop in cdnvm()
1 parent 11d71ab commit ca897ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ Put the following at the end of your `$HOME/.bashrc`:
524524

525525
```bash
526526
cdnvm() {
527-
cd "$@";
527+
command cd "$@";
528528
nvm_path=$(nvm_find_up .nvmrc | tr -d '\n')
529529

530530
# If there are no .nvmrc file, use the default nvm version

0 commit comments

Comments
 (0)