export some nodeenv env vars so they get kicked down from entry

This commit is contained in:
Michael Bradley, Jr 2018-08-20 19:31:42 -05:00
parent 6f0e8d292e
commit d0c41a2d3c
1 changed files with 15 additions and 1 deletions

16
env/.bash_env vendored
View File

@ -24,9 +24,15 @@ nac () {
__denac
return 1
fi
__versions
export -f deactivate_node
export _OLD_NODE_PATH
export _OLD_NODE_VIRTUAL_PATH
export _OLD_NODE_VIRTUAL_PS1
export _OLD_npm_config_prefix
export _OLD_NPM_CONFIG_PREFIX
alias denac='deactivate_node'
alias deactivate_node='__denac'
__versions
case $- in
*i*) __npm_completion ;;
esac
@ -127,4 +133,12 @@ export -f __versions
if [[ ! -v NODE_VIRTUAL_ENV ]]; then
nac default
else
if ! type denac &> /dev/null; then
alias denac='deactivate_node'
alias deactivate_node='__denac'
case $- in
*i*) __npm_completion ;;
esac
fi
fi