From dcec53f35c8131914de87d533a262291993c1124 Mon Sep 17 00:00:00 2001 From: Wilson Biggs Date: Tue, 20 Jun 2023 12:16:27 -0400 Subject: [PATCH] Simplify logic? --- functions/fish_prompt.fish | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index fd6d9e8..28761d1 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -873,11 +873,7 @@ function __bobthefish_prompt_virtualfish -S -d "Display current Python virtual e if [ "$version_glyph" -o "$theme_display_virtualenv_python_version" = 'no' ] __bobthefish_start_segment $color_virtualfish - echo -ns $virtualenv_glyph - if [ "$theme_display_virtualenv_python_version" != 'no' ] - echo -ns $version_glyph - end - echo -ns ' ' + echo -ns $virtualenv_glyph $version_glyph ' ' end if [ "$VIRTUAL_ENV" ]