Skip to content

Commit 0657a59

Browse files
authored
refactor: make cdnvm usage less surprising
Always alias `cd` to `cdnvm` and thus always succeed or fail if there is a deeper shell integration.
1 parent 4904c7a commit 0657a59

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
@@ -600,8 +600,8 @@ cdnvm() {
600600
fi
601601
}
602602

603-
cdnvm "$PWD" || exit
604603
alias cd='cdnvm'
604+
cdnvm "$PWD" || exit
605605
```
606606
607607
This alias would search 'up' from your current directory in order to detect a `.nvmrc` file. If it finds it, it will switch to that version; if not, it will use the default version.

0 commit comments

Comments
 (0)