cfg/bin/dump_tmux_color.sh
Knut Ahlers a9f0300a97
Add dump_tmux_color script
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-08-18 18:52:29 +02:00

12 lines
201 B
Bash
Executable file

#!/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"