fish: remove unused color variable

This commit is contained in:
Charles Gould 2022-04-14 21:01:50 -04:00
parent 2da4bc33e7
commit a1da9b1ea9
2 changed files with 6 additions and 7 deletions

View File

@ -96,7 +96,6 @@ if not set -q __universals_initialized
set -U fish_color_history_current --bold
set -U fish_color_host normal
set -U fish_color_host_remote yellow
set -U fish_color_match --background=brblue
set -U fish_color_normal normal
set -U fish_color_operator blue
set -U fish_color_param white

View File

@ -14,19 +14,19 @@ function fish_colors --description 'Print the fish color variables'
set -l normal (set_color normal)
set -l bold (set_color --bold)
echo '┌──────────────────────────────────┬────────────────────────────────────────┬────────────────────────┐'
echo '│ Variable │ Definition │ Example │'
echo '├──────────────────────────────────┼────────────────────────────────────────┼────────────────────────┤'
echo '┌──────────────────────────────────────┬────────────────────────────────────────┬────────────────────────┐'
echo '│ Variable │ Definition │ Example │'
echo '├──────────────────────────────────────┼────────────────────────────────────────┼────────────────────────┤'
for variable in $color_list
set -l value $$variable
set -l color (set_color $value 2>/dev/null)
or begin
printf "│ %-32s │ %s%-38s │ %-22s │\n" "$variable" (set_color --bold white --background=red) "$value" "The quick brown fox..."
printf "│ %-36s │ %s%-38s │ %-22s │\n" "$variable" (set_color --bold white --background=red) "$value" "The quick brown fox..."
continue
end
printf "$normal%-32s │ $bold%-38s$normal$color%-22s$normal │\n" "$variable" "$value" "The quick brown fox..."
printf "$normal%-36s │ $bold%-38s$normal$color%-22s$normal │\n" "$variable" "$value" "The quick brown fox..."
end
echo '└──────────────────────────────────┴────────────────────────────────────────┴────────────────────────┘'
echo '└──────────────────────────────────────┴────────────────────────────────────────┴────────────────────────┘'
end
if contains -- '-g' $argv; or contains -- '--global' $argv