init
This commit is contained in:
commit
38355d2442
9083 changed files with 1225834 additions and 0 deletions
|
|
@ -0,0 +1,32 @@
|
|||
def-env deactivate-virtualenv [] {
|
||||
def has-env [name: string] {
|
||||
$name in (env).name
|
||||
}
|
||||
|
||||
let is-windows = ((sys).host.name | str downcase) == 'windows'
|
||||
|
||||
let path-name = if $is-windows {
|
||||
if (has-env 'Path') {
|
||||
'Path'
|
||||
} else {
|
||||
'PATH'
|
||||
}
|
||||
} else {
|
||||
'PATH'
|
||||
}
|
||||
|
||||
load-env { $path-name : $env._OLD_VIRTUAL_PATH }
|
||||
|
||||
let-env PROMPT_COMMAND = $env._OLD_PROMPT_COMMAND
|
||||
|
||||
# Hiding the environment variables that were created when activating the env
|
||||
hide _OLD_VIRTUAL_PATH
|
||||
hide _OLD_PROMPT_COMMAND
|
||||
hide VIRTUAL_ENV
|
||||
hide VIRTUAL_PROMPT
|
||||
}
|
||||
|
||||
deactivate-virtualenv
|
||||
|
||||
hide pydoc
|
||||
hide deactivate
|
||||
Loading…
Add table
Add a link
Reference in a new issue