We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beb7d66 commit f355ddbCopy full SHA for f355ddb
docs/changelog/2481.bugfix.rst
@@ -0,0 +1 @@
1
+Fix broken prompt in Nushell when activating virtual environment.
src/virtualenv/activation/nushell/activate.nu
@@ -92,7 +92,7 @@ export-env {
92
93
# If there is no default prompt, then only the env is printed in the prompt
94
let new_prompt = if (has-env 'PROMPT_COMMAND') {
95
- if ($old_prompt_command | describe) == 'block' {
+ if 'closure' in ($old_prompt_command | describe) {
96
{ $'($virtual_prompt)(do $old_prompt_command)' }
97
} else {
98
{ $'($virtual_prompt)($old_prompt_command)' }
0 commit comments