Skip to content

Commit cc6915e

Browse files
donnikitosljharb
authored andcommitted
[readme] updated automatic call script for bash
Bash terminal was throwing error: `bash: cd: too many arguments` when directory had some spaces in the name. The quotes around `$PWD` fixes this issue
1 parent b6b6e68 commit cc6915e

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
@@ -566,7 +566,7 @@ cdnvm() {
566566
fi
567567
}
568568
alias cd='cdnvm'
569-
cd $PWD
569+
cd "$PWD"
570570
```
571571
572572
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)