CS2613/utils/python-venv/Scripts/deactivate.nu
Isaac Shoebottom a50f49d2c8 Add python venv
2022-10-31 10:10:52 -03:00

12 lines
333 B
Plaintext

# Setting the old path
let path-name = (if ((sys).host.name == "Windows") { "Path" } { "PATH" })
let-env $path-name = $nu.env._OLD_VIRTUAL_PATH
# Unleting the environment variables that were created when activating the env
unlet-env VIRTUAL_ENV
unlet-env _OLD_VIRTUAL_PATH
unlet-env PROMPT_COMMAND
unalias pydoc
unalias deactivate