From 343b4dde32ae6fd5d225237909283b5c5dc022d4 Mon Sep 17 00:00:00 2001 From: Wilson Biggs Date: Tue, 20 Jun 2023 11:54:42 -0400 Subject: [PATCH] Make displaying python version configurable --- functions/fish_prompt.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index 1ec90fd..788585d 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -33,6 +33,7 @@ # set -g theme_display_aws_vault_profile yes # set -g theme_display_hg yes # set -g theme_display_virtualenv no +# set -g theme_display_virtualenv_python_version no # set -g theme_display_nix no # set -g theme_display_ruby no # set -g theme_display_user ssh @@ -849,6 +850,9 @@ function __bobthefish_prompt_rubies -S -d 'Display current Ruby information' end function __bobthefish_virtualenv_python_version -S -d 'Get current Python version' + [ "$theme_display_virtualenv_python_version" = 'no' ] + and return + switch (python --version 2>&1 | tr '\n' ' ') case 'Python 2*PyPy*' echo $pypy_glyph