From ada6cce8d3d3da1a27e6b265b5ba342380b02741 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Wed, 1 Aug 2018 11:23:31 -0500 Subject: [PATCH] enable nvm completion upon nvm_load --- Dockerfile | 1 - env/.bash_env | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 123f4eb..4f9ec05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ diff --git a/env/.bash_env b/env/.bash_env index c4cc0fc..85ad206 100644 --- a/env/.bash_env +++ b/env/.bash_env @@ -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