From 023030fd509ae5dbc3a955d51970e304a33bd8ac Mon Sep 17 00:00:00 2001 From: Don March Date: Tue, 7 Jun 2016 01:30:18 -0400 Subject: [PATCH] Improve `__bobthefish_display_colors` variable Per suggestions from @bobthecow. --- fish_prompt.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index fd0dcc1..88042ad 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -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