summaryrefslogtreecommitdiff
path: root/etc/functions/colortable
blob: fadd7a7f25e90835aaf00813fa1cd5cbf14fad73 (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