Skip to content

Instantly share code, notes, and snippets.

@lagsalot
Created December 3, 2012 16:27
Show Gist options
  • Select an option

  • Save lagsalot/4196091 to your computer and use it in GitHub Desktop.

Select an option

Save lagsalot/4196091 to your computer and use it in GitHub Desktop.
color magic
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