mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-09-11 13:45:56 +03:00
conda fix (#547)
This commit is contained in:
parent
bbbf8afb08
commit
e271caf044
@ -83,12 +83,13 @@ export def-env deactivate [] {
|
||||
hide-env CONDA_DEFAULT_ENV
|
||||
hide-env CONDA_OLD_PATH
|
||||
|
||||
$env.PROMPT_COMMAND = if $env.CONDA_OLD_PROMPT_COMMAND == $nothing {
|
||||
$env.PROMPT_COMMAND
|
||||
} else {
|
||||
$env.CONDA_OLD_PROMPT_COMMAND
|
||||
}
|
||||
|
||||
$env.PROMPT_COMMAND = (
|
||||
if $env.CONDA_OLD_PROMPT_COMMAND == $nothing {
|
||||
$env.PROMPT_COMMAND
|
||||
} else {
|
||||
$env.CONDA_OLD_PROMPT_COMMAND
|
||||
}
|
||||
)
|
||||
hide-env CONDA_OLD_PROMPT_COMMAND
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user