Skip to content

Commit

Permalink
[Fix] bash_completion: be robust when cd is overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
giladbarneaallot authored and ljharb committed Sep 13, 2021
1 parent 59532c7 commit d91087c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit d91087c

Please sign in to comment.