Skip to content

Instantly share code, notes, and snippets.

@mattieb
Last active May 30, 2023 12:05
Show Gist options
  • Save mattieb/e9467a57a654f0d75789c6ea4d19de7e to your computer and use it in GitHub Desktop.
Save mattieb/e9467a57a654f0d75789c6ea4d19de7e to your computer and use it in GitHub Desktop.
prints all 256 available colors using portable-color
#!/bin/sh
#
# portable-color.sh is from https://github.com/mattieb/portable-color/
#
. portable-color.sh
printf %s 'all-colors:'
for n in $(seq 0 256)
do
printf %s \ $(setaf $n $n)
done
echo .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment