Improve __bobthefish_display_colors variable

Per suggestions from @bobthecow.
This commit is contained in:
Don March 2016-06-07 01:30:18 -04:00
parent 2f06c08c33
commit 023030fd50

View File

@ -608,15 +608,15 @@ end
# ===========================
function __bobthefish_display_colors -d 'Print example prompts using the current color scheme'
set -g __bobthefish_display_colors 1
set -g __bobthefish_display_colors
end
function __bobthefish_maybe_display_colors -S
if test -z $__bobthefish_display_colors
if not set -q __bobthefish_display_colors
return
end
set -g __bobthefish_display_colors
set -e __bobthefish_display_colors
echo
set_color normal