From d91087c333d57c1cf37e9875ae235a1640a44d98 Mon Sep 17 00:00:00 2001 From: Gilad Barnea Date: Mon, 13 Sep 2021 15:26:40 +0300 Subject: [PATCH] [Fix] `bash_completion`: be robust when `cd` is overridden --- bash_completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_completion b/bash_completion index 3e72500..e1f987c 100644 --- a/bash_completion +++ b/bash_completion @@ -58,7 +58,7 @@ __nvm_aliases() { declare aliases aliases="" if [ -d "${NVM_DIR}/alias" ]; then - aliases="$(cd "${NVM_DIR}/alias" && command find "${PWD}" -type f | command sed "s:${PWD}/::")" + aliases="$(command cd "${NVM_DIR}/alias" && command find "${PWD}" -type f | command sed "s:${PWD}/::")" fi echo "${aliases} node stable unstable iojs" }