From a9f0300a97119be73bf04daf04df677371596407 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 18 Aug 2018 18:52:29 +0200 Subject: [PATCH] Add dump_tmux_color script Signed-off-by: Knut Ahlers --- bin/dump_tmux_color.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/dump_tmux_color.sh diff --git a/bin/dump_tmux_color.sh b/bin/dump_tmux_color.sh new file mode 100755 index 0000000..e46bd53 --- /dev/null +++ b/bin/dump_tmux_color.sh @@ -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"