#!/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]) echo end