fish: remove unused color variable
This commit is contained in:
parent
2da4bc33e7
commit
a1da9b1ea9
@ -96,7 +96,6 @@ if not set -q __universals_initialized
|
|||||||
set -U fish_color_history_current --bold
|
set -U fish_color_history_current --bold
|
||||||
set -U fish_color_host normal
|
set -U fish_color_host normal
|
||||||
set -U fish_color_host_remote yellow
|
set -U fish_color_host_remote yellow
|
||||||
set -U fish_color_match --background=brblue
|
|
||||||
set -U fish_color_normal normal
|
set -U fish_color_normal normal
|
||||||
set -U fish_color_operator blue
|
set -U fish_color_operator blue
|
||||||
set -U fish_color_param white
|
set -U fish_color_param white
|
||||||
|
@ -14,19 +14,19 @@ function fish_colors --description 'Print the fish color variables'
|
|||||||
set -l normal (set_color normal)
|
set -l normal (set_color normal)
|
||||||
set -l bold (set_color --bold)
|
set -l bold (set_color --bold)
|
||||||
|
|
||||||
echo '┌──────────────────────────────────┬────────────────────────────────────────┬────────────────────────┐'
|
echo '┌──────────────────────────────────────┬────────────────────────────────────────┬────────────────────────┐'
|
||||||
echo '│ Variable │ Definition │ Example │'
|
echo '│ Variable │ Definition │ Example │'
|
||||||
echo '├──────────────────────────────────┼────────────────────────────────────────┼────────────────────────┤'
|
echo '├──────────────────────────────────────┼────────────────────────────────────────┼────────────────────────┤'
|
||||||
for variable in $color_list
|
for variable in $color_list
|
||||||
set -l value $$variable
|
set -l value $$variable
|
||||||
set -l color (set_color $value 2>/dev/null)
|
set -l color (set_color $value 2>/dev/null)
|
||||||
or begin
|
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
|
continue
|
||||||
end
|
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
|
end
|
||||||
echo '└──────────────────────────────────┴────────────────────────────────────────┴────────────────────────┘'
|
echo '└──────────────────────────────────────┴────────────────────────────────────────┴────────────────────────┘'
|
||||||
end
|
end
|
||||||
|
|
||||||
if contains -- '-g' $argv; or contains -- '--global' $argv
|
if contains -- '-g' $argv; or contains -- '--global' $argv
|
||||||
|
Loading…
x
Reference in New Issue
Block a user