Better color setting for prompt

pull/327/head
Sean Patrick Hagen 2 years ago
parent bb9c3f1946
commit d25d03ab4a
No known key found for this signature in database
GPG Key ID: 618FC6E1C001EE4F

@ -887,19 +887,21 @@ function __bobthefish_prompt_golang -S -d 'Display current Go information'
if printf "%s\n%s" "$gomod_version" "$actual_go_version" | sort --check=silent --version-sort
set high_enough_version "1"
end
end
end
__bobthefish_start_segment $color_virtualgo
echo -ns $go_glyph
# do we show the version in red if it's not the right version?
if [ "$theme_display_go_show_wrong_version" = "yes" ]
# yes we do, so check if the version is high enough
if [ "$high_enough_version" = "0" ]
# the version of go isn't high enough
__bobthefish_start_segment $color_rvm
else
__bobthefish_start_segment $color_virtualgo
end
else
__bobthefish_start_segment $color_virtualgo
end
echo -ns $go_glyph
if [ "$theme_display_go_actual" = "yes" ]
if [ "$actual_go_version" = "0" ]

Loading…
Cancel
Save