aboutsummaryrefslogtreecommitdiff
path: root/color_palette.sh
diff options
context:
space:
mode:
authorCody Hiar <chiar@hybridforge.com>2015-08-12 12:06:23 -0600
committerCody Hiar <chiar@hybridforge.com>2015-08-12 12:06:23 -0600
commit07fc2644a237187dd4c5680e88f4adadbf533603 (patch)
treebb6335e180df48c5a6f0b893312857d36ad470f7 /color_palette.sh
Initial commit of the working files
Diffstat (limited to 'color_palette.sh')
-rwxr-xr-xcolor_palette.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/color_palette.sh b/color_palette.sh
new file mode 100755
index 0000000..3762fae
--- /dev/null
+++ b/color_palette.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+# Print tmux color palette.
+# Idea from http://superuser.com/questions/285381/how-does-the-tmux-color-palette-work
+
+for i in $(seq 0 4 255); do
+ for j in $(seq $i $(expr $i + 3)); do
+ for k in $(seq 1 $(expr 3 - ${#j})); do
+ printf " "
+ done
+ printf "\x1b[38;5;${j}mcolour${j}"
+ [[ $(expr $j % 4) != 3 ]] && printf " "
+ done
+ printf "\n"
+done