Add dump_tmux_color script

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-08-18 18:52:29 +02:00
parent a4c174641d
commit a9f0300a97
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

12
bin/dump_tmux_color.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
set -euo pipefail
printf "\n "
for i in {0..255}; do
colcode="colour${i}"
printf "\x1b[38;5;${i}m%-10s " $colcode
if [ $((($i + 1) % 8)) = 0 ]; then
printf "\n "
fi
done
printf "\n"