Skip to content

Instantly share code, notes, and snippets.

@uplus
Last active December 13, 2016 13:25
Show Gist options
  • Save uplus/1f95d993da1ce27dfcf7eec7b5bd50f9 to your computer and use it in GitHub Desktop.
Save uplus/1f95d993da1ce27dfcf7eec7b5bd50f9 to your computer and use it in GitHub Desktop.
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