Skip to content

Instantly share code, notes, and snippets.

@heapwolf
Created March 2, 2014 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heapwolf/9310937 to your computer and use it in GitHub Desktop.
Save heapwolf/9310937 to your computer and use it in GitHub Desktop.
tmux.colors.sh
#!/usr/bin/env bash
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[48;5;${j}mcolour${j}\x1b[48;0;"
[[ $(expr $j % 4) != 3 ]] && printf " "
done
printf "\n"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment