enable nvm completion upon nvm_load

This commit is contained in:
Michael Bradley, Jr 2018-08-01 11:23:31 -05:00
parent 926685782e
commit ada6cce8d3
2 changed files with 4 additions and 1 deletions

View File

@ -107,7 +107,6 @@ RUN git clone --depth 1 \
.bash_it 2> /dev/null \
&& export BASH_IT=${HOME}/.bash_it \
&& . ${BASH_IT}/bash_it.sh \
&& bash-it enable completion nvm \
&& mkdir -p .bash_it/custom/themes/nodez \
&& pip install --user nodeenv==${NODEENV_VERSION} \
&& mkdir -p .local/nodeenv \

4
env/.bash_env vendored
View File

@ -76,6 +76,10 @@ __nvm_load () {
__denac
. ${HOME}/.bash_env_nvm_load
. ${HOME}/.nvm/nvm.sh &> /dev/null
case $- in
*i*) bash-it enable completion nvm &> /dev/null; \
. ${BASH_IT}/completion/available/nvm.completion.bash ;;
esac
if [[ $(which node) = "${HOME}/.nvm/versions/"* ]]; then
__versions_export
case $- in