2019-01-26 18:51:26 +01:00
|
|
|
#!/usr/bin/env fish
|
|
|
|
|
|
|
|
set colors black red green yellow blue magenta cyan white
|
|
|
|
|
|
|
|
function colored
|
|
|
|
set_color -b $argv[1]
|
|
|
|
set_color 181b20
|
|
|
|
echo -n $argv[2]
|
|
|
|
set_color normal
|
|
|
|
end
|
|
|
|
|
|
|
|
for i in (seq 8)
|
|
|
|
printf "%02d %32s %02d %40s\n" \
|
|
|
|
(math $i - 1) \
|
|
|
|
(colored $colors[$i] $colors[$i]) \
|
|
|
|
(math $i + 7) \
|
|
|
|
(colored br$colors[$i] "bright "$colors[$i])
|
2019-08-29 11:08:45 +02:00
|
|
|
echo
|
2019-01-26 18:51:26 +01:00
|
|
|
end
|