From 6dbbdc1c3b874f2e59d027c91604ac40dcd2c4d9 Mon Sep 17 00:00:00 2001 From: zjeuhpiung liu Date: Wed, 22 Apr 2020 20:05:48 +0800 Subject: [PATCH] Fixed erase NODE_VIRTUAL_ENV while deactivate_node in fish --- nodeenv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nodeenv.py b/nodeenv.py index e7c646d..4886c09 100755 --- a/nodeenv.py +++ b/nodeenv.py @@ -1337,6 +1337,8 @@ def main(): set -e _OLD_NODE_FISH_PROMPT_OVERRIDE end + set -e NODE_VIRTUAL_ENV + if test (count $argv) = 0 -o "$argv[1]" != "nondestructive" # Self destruct! functions -e deactivate_node