Skip to content

Commit

Permalink
Fixed erase NODE_VIRTUAL_ENV while deactivate_node in fish
Browse files Browse the repository at this point in the history
  • Loading branch information
sophgn committed Apr 22, 2020
1 parent 2ba54b4 commit 6dbbdc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nodeenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6dbbdc1

Please sign in to comment.