Skip to content

Commit d91087c

Browse files
giladbarneaallotljharb
authored andcommitted
[Fix] bash_completion: be robust when cd is overridden
1 parent 59532c7 commit d91087c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_completion

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ __nvm_aliases() {
5858
declare aliases
5959
aliases=""
6060
if [ -d "${NVM_DIR}/alias" ]; then
61-
aliases="$(cd "${NVM_DIR}/alias" && command find "${PWD}" -type f | command sed "s:${PWD}/::")"
61+
aliases="$(command cd "${NVM_DIR}/alias" && command find "${PWD}" -type f | command sed "s:${PWD}/::")"
6262
fi
6363
echo "${aliases} node stable unstable iojs"
6464
}

0 commit comments

Comments
 (0)