From d0c41a2d3c49a32c30a497ae247518facc6484d5 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Mon, 20 Aug 2018 19:31:42 -0500 Subject: [PATCH] export some nodeenv env vars so they get kicked down from entry --- env/.bash_env | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/env/.bash_env b/env/.bash_env index 7f1271e..86eaf91 100644 --- a/env/.bash_env +++ b/env/.bash_env @@ -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