Skip to content
Myr

[Fix] `bash_completion`: be robust when `cd` is overridden

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Gilad Barnea · committed by Jordan Harband · parent 59532c7 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:bash_completion+1 added-1 removed
56 unmodified lines
57__nvm_aliases() {58 declare aliases59 aliases=""60 if [ -d "${NVM_DIR}/alias" ]; then61 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}/::")"62 fi63 echo "${aliases} node stable unstable iojs"64}65
34 unmodified lines