diff options
Diffstat (limited to 'etc/functions/colortable')
-rw-r--r-- | etc/functions/colortable | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/functions/colortable b/etc/functions/colortable new file mode 100644 index 0000000..4acdf92 --- /dev/null +++ b/etc/functions/colortable @@ -0,0 +1,7 @@ +## vim:ft=zsh +## print a table with all 256 color codes + +for i in {0..255}; { + printf " %s%-3s" $'\e[38;5;'${i}m $i + (( (i+1) % (COLUMNS/4) < 1 )) && echo +} |