fish: fix deprecated stderr redirection

This commit is contained in:
Charles Gould 2020-06-12 01:02:13 -05:00
parent d682d6aa90
commit b83b7e087f

View File

@ -18,7 +18,7 @@ function fish_colors --description 'Print the fish color variables'
echo '|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|'
for variable in $color_list
set -l value $$variable
set -l color (set_color $value ^/dev/null)
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..."
continue