summaryrefslogtreecommitdiff
path: root/etc/functions/colortable
blob: ab46eb4f5b721bdf638e4563bb0a383c1f18e342 (plain)
1
2
3
4
5
6
7
8
## 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
}
echo