Skip to content

Commit 4a0b180

Browse files
committed
Avoid infinite loop in cdnvm()
1 parent cc6915e commit 4a0b180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
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)