From ed2cc7953e2880c4a80db50b35239b733e42b049 Mon Sep 17 00:00:00 2001 From: Gianluca Costa Date: Sat, 11 Mar 2023 02:37:28 +0100 Subject: [PATCH] Patch .bashrc extension snippet in README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the case of nvm 0.39.3, this patch fixes the message error: «' not found - try `nvm ls-remote` to browse available versions.» that occurs when cd'ing to a directory whose .nvmrc file contains a version starting with "v" - which is, in particular, the output of `node --version`. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 50803c3..f891335 100644 --- a/README.md +++ b/README.md @@ -581,7 +581,7 @@ cdnvm() { elif [[ -s $nvm_path/.nvmrc && -r $nvm_path/.nvmrc ]]; then declare nvm_version - nvm_version=$(<"$nvm_path"/.nvmrc) + nvm_version=$(<"$nvm_path"/.nvmrc | sed 's/^v//g') declare locally_resolved_nvm_version # `nvm ls` will check all locally-available versions