From cc6915e2167ac8f0166a40ccda4f5d9971d00cfb Mon Sep 17 00:00:00 2001 From: Nikita N Date: Tue, 21 Sep 2021 23:57:25 +0300 Subject: [PATCH] [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 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c37cd6..0eb56c9 100644 --- a/README.md +++ b/README.md @@ -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.