enable nvm completion upon nvm_load
This commit is contained in:
parent
926685782e
commit
ada6cce8d3
|
@ -107,7 +107,6 @@ RUN git clone --depth 1 \
|
||||||
.bash_it 2> /dev/null \
|
.bash_it 2> /dev/null \
|
||||||
&& export BASH_IT=${HOME}/.bash_it \
|
&& export BASH_IT=${HOME}/.bash_it \
|
||||||
&& . ${BASH_IT}/bash_it.sh \
|
&& . ${BASH_IT}/bash_it.sh \
|
||||||
&& bash-it enable completion nvm \
|
|
||||||
&& mkdir -p .bash_it/custom/themes/nodez \
|
&& mkdir -p .bash_it/custom/themes/nodez \
|
||||||
&& pip install --user nodeenv==${NODEENV_VERSION} \
|
&& pip install --user nodeenv==${NODEENV_VERSION} \
|
||||||
&& mkdir -p .local/nodeenv \
|
&& mkdir -p .local/nodeenv \
|
||||||
|
|
|
@ -76,6 +76,10 @@ __nvm_load () {
|
||||||
__denac
|
__denac
|
||||||
. ${HOME}/.bash_env_nvm_load
|
. ${HOME}/.bash_env_nvm_load
|
||||||
. ${HOME}/.nvm/nvm.sh &> /dev/null
|
. ${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
|
if [[ $(which node) = "${HOME}/.nvm/versions/"* ]]; then
|
||||||
__versions_export
|
__versions_export
|
||||||
case $- in
|
case $- in
|
||||||
|
|
Loading…
Reference in New Issue