From 018d5c76e7f93a2fdfffe81ef02c210a5d085d86 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 24 Jan 2025 16:35:15 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/virtualenv/activation/nushell/activate.nu | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/virtualenv/activation/nushell/activate.nu b/src/virtualenv/activation/nushell/activate.nu index 2f03427fb..0df1b3211 100644 --- a/src/virtualenv/activation/nushell/activate.nu +++ b/src/virtualenv/activation/nushell/activate.nu @@ -84,14 +84,14 @@ export-env { } else { # Creating the new prompt for the session let virtual_prefix = $"(char lparen)($virtual_env | path basename)(char rparen) " - + # Back up the old prompt builder let old_prompt_command = if (has-env 'PROMPT_COMMAND') { $env.PROMPT_COMMAND } else { "" } - + let new_prompt = if (has-env 'PROMPT_COMMAND') { if 'closure' in ($old_prompt_command | describe) { {|| $'($virtual_prefix)(do $old_prompt_command)' } @@ -101,7 +101,7 @@ export-env { } else { {|| $'($virtual_prefix)' } } - + # Ensure the correct variable name for the test $new_env | merge { _OLD_VIRTUAL_PATH : ($old_path | str join $path_sep) @@ -110,7 +110,7 @@ export-env { VIRTUAL_PREFIX : $virtual_prefix # Change here to match the test expectation } } - + # Load environment variables to activate the virtualenv load-env $new_env