Skip to content

Commit

Permalink
[readme] updated automatic call script for bash
Browse files Browse the repository at this point in the history
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
  • Loading branch information
donnikitos authored and ljharb committed Sep 21, 2021
1 parent b6b6e68 commit cc6915e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ cdnvm() {
fi
}
alias cd='cdnvm'
cd $PWD
cd "$PWD"
```
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.
Expand Down

0 comments on commit cc6915e

Please sign in to comment.