aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_config_interactive.fish
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2015-09-10 15:12:02 +0200
committerGravatar Fabian Homborg <FHomborg@gmail.com>2015-09-10 15:12:02 +0200
commitb231ab7238023b030a78f0e49b3091d0f93b38fe (patch)
tree85428550c5984cd137a151866d88329eee8054d1 /share/functions/__fish_config_interactive.fish
parent2587bbc4a768ed7097e35cf87d43203ff94aa961 (diff)
Allow set_color options in general for linux VTs
Diffstat (limited to 'share/functions/__fish_config_interactive.fish')
-rw-r--r--share/functions/__fish_config_interactive.fish12
1 files changed, 9 insertions, 3 deletions
diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish
index 2bd958c9..2f170522 100644
--- a/share/functions/__fish_config_interactive.fish
+++ b/share/functions/__fish_config_interactive.fish
@@ -297,11 +297,17 @@ function __fish_config_interactive -d "Initializations that should be performed
# Don't allow setting color other than what linux offers (see #2001)
functions -e set_color
function set_color
- set -l term_colors black red green yellow blue magenta cyan white normal --bold -o -c --print-colors -u --underline
+ set -l term_colors black red green yellow blue magenta cyan white normal
for a in $argv
if not contains -- $a $term_colors
- echo "Color not valid in TERM = linux: $a"
- return 1
+ 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