Created
April 15, 2012 17:19
-
-
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
This file contains 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
#!/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