From d2ce1e4371be7b25d53b45418963725e08b04865 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 9 Apr 2009 22:43:23 +0200 Subject: Added "colortable" helper function --- etc/functions/colortable | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 etc/functions/colortable 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 +} -- cgit v1.2.3