Skip to content

Instantly share code, notes, and snippets.

@wecanspeak
Created December 14, 2013 06:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wecanspeak/7956277 to your computer and use it in GitHub Desktop.
Save wecanspeak/7956277 to your computer and use it in GitHub Desktop.
dump tmux color code
#!/bin/sh
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment