Skip to content

Instantly share code, notes, and snippets.

@bertrandom
Created April 15, 2012 17:19
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 bertrandom/2393966 to your computer and use it in GitHub Desktop.
Save bertrandom/2393966 to your computer and use it in GitHub Desktop.
Script for displaying all the available 256 colors in the terminal, for prompt customization wankery
#!/bin/bash
function fgcolor {
echo "\033[38;5;"$1"m"
}
for i in `seq 1 256`
do
echo -e "$(fgcolor $i)color-$i"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment