From c14fc0f92d79ba6f01464767421a2e6b98bb47d3 Mon Sep 17 00:00:00 2001 From: Wilson Biggs Date: Tue, 20 Jun 2023 12:05:11 -0400 Subject: [PATCH] Only hide version, don't remove glyph and color, and preserve behavior for unmatched python --- functions/fish_prompt.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index 788585d..ede23e2 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -873,7 +873,11 @@ function __bobthefish_prompt_virtualfish -S -d "Display current Python virtual e if [ "$version_glyph" ] __bobthefish_start_segment $color_virtualfish - echo -ns $virtualenv_glyph $version_glyph ' ' + echo -ns $virtualenv_glyph + if [ "$theme_display_virtualenv_python_version" != 'no' ] + echo -ns $version_glyph + end + echo -ns ' ' end if [ "$VIRTUAL_ENV" ]