deactivate.nu 344 B

1234567891011
  1. # Setting the old path
  2. let path-name = (if ((sys).host.name == "Windows") { "Path" } { "PATH" })
  3. let-env $path-name = $nu.env._OLD_VIRTUAL_PATH
  4. # Unleting the environment variables that were created when activating the env
  5. unlet-env VIRTUAL_ENV
  6. unlet-env _OLD_VIRTUAL_PATH
  7. unlet-env PROMPT_COMMAND
  8. unalias pydoc
  9. unalias deactivate