Skip to content

Commit e271caf

Browse files
authored
conda fix (nushell#547)
1 parent bbbf8af commit e271caf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

modules/virtual_environments/conda.nu

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,13 @@ export def-env deactivate [] {
8383
hide-env CONDA_DEFAULT_ENV
8484
hide-env CONDA_OLD_PATH
8585

86-
$env.PROMPT_COMMAND = if $env.CONDA_OLD_PROMPT_COMMAND == $nothing {
87-
$env.PROMPT_COMMAND
88-
} else {
89-
$env.CONDA_OLD_PROMPT_COMMAND
90-
}
91-
86+
$env.PROMPT_COMMAND = (
87+
if $env.CONDA_OLD_PROMPT_COMMAND == $nothing {
88+
$env.PROMPT_COMMAND
89+
} else {
90+
$env.CONDA_OLD_PROMPT_COMMAND
91+
}
92+
)
9293
hide-env CONDA_OLD_PROMPT_COMMAND
9394
}
9495

0 commit comments

Comments
 (0)