Created
December 3, 2012 16:27
-
-
Save lagsalot/4196091 to your computer and use it in GitHub Desktop.
color magic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias list_colors='for i in $(seq 0 10 256); do for j in $(seq 0 1 9); do n=$(expr $i + $j); [ $n -gt 256 ] && break || echo -ne "\t\033[38;5;${n}m${n}\033[0m"; done; echo; done' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment