Skip to content

Commit

Permalink
Fix broken conda prompt (nushell#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubouch committed Jan 5, 2023
1 parent c99b299 commit 20d11d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtual_environments/conda.nu
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export def-env activate [


let new_prompt = if (has-env 'PROMPT_COMMAND') {
if ($old_prompt_command | describe) == 'block' {
if 'closure' in ($old_prompt_command | describe) {
{ $'($virtual_prompt)(do $old_prompt_command)' }
} else {
{ $'($virtual_prompt)($old_prompt_command)' }
Expand Down

0 comments on commit 20d11d5

Please sign in to comment.