From c76f896f6986b0ce86f1ac573e4ec44adda5cbcf Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 24 Jul 2016 16:39:40 -0700 Subject: [PATCH] Revert "Revert "Only show greeting on interactive login sessions"" This reverts commit 88688d02b2c799ed5af5a8441c120576d36ded82. --- .../functions/__fish_config_interactive.fish | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish index e12c27c04..e26e6bc55 100644 --- a/share/functions/__fish_config_interactive.fish +++ b/share/functions/__fish_config_interactive.fish @@ -303,26 +303,6 @@ function __fish_config_interactive -d "Initializations that should be performed set -g fish_pager_color_description yellow set -g fish_pager_color_progress cyan - # Don't allow setting color other than what linux offers (see #2001) - functions -e set_color - function set_color --shadow-builtin - set -l term_colors black red green yellow blue magenta cyan white normal - for a in $argv - if not contains -- $a $term_colors - switch $a - # Also allow options - case "-*" - continue - case "*" - echo "Color not valid in TERM = linux: $a" - return 1 - end - end - end - builtin set_color $argv - return $status - end - # Set fish_prompt to a VT-friendly version # without color or unicode function fish_prompt