Create a gist now

Instantly share code, notes, and snippets.

@u10e10 /colors.sh
Last active Dec 13, 2016

colorso () {
local c
echo
for c in {000..255}
do
echo -n "\e[38;5;${c}m $c"
[ $(($c%16)) -eq 15 ] && echo
done
echo
}
colorsv () {
local c
echo
for c in {016..255}
do
echo -n "\e[38;5;${c}m $c"
[ $(($((c-16))%6)) -eq 5 ] && echo
done
echo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment