Add option to hide python version

pull/357/head
Maximilian Schambach 3 months ago
parent 05c0765c4e
commit 7ff4d6a3b3

@ -65,7 +65,7 @@ This theme is based loosely on [agnoster][btf-agnoster].
### Configuration
You can override some of the following default options in your `config.fish`:
You can override some of the following default options in your `config.fish` or `.conf/omf/init.fish`:
```fish
set -g theme_display_git no
@ -83,6 +83,7 @@ set -g theme_display_docker_machine no
set -g theme_display_k8s_context yes
set -g theme_display_hg yes
set -g theme_display_virtualenv no
set -g theme_hide_python_version yes
set -g theme_display_nix no
set -g theme_display_ruby no
set -g theme_display_node yes

@ -50,6 +50,7 @@
# set -g fish_prompt_pwd_dir_length 0
# set -g theme_project_dir_length 1
# set -g theme_newline_cursor yes
# set -g theme_hide_python_version yes
# ==============================
@ -869,7 +870,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 ' '
if [ "$theme_hide_python_version" = yes ]
echo -ns $virtualenv_glyph
else
echo -ns $virtualenv_glyph $version_glyph ' '
end
end
if [ "$VIRTUAL_ENV" ]

Loading…
Cancel
Save