Skip to content

Instantly share code, notes, and snippets.

@ThinGuy
Last active October 6, 2018 17:29
Show Gist options
  • Save ThinGuy/63b804b6532e099c4454f1a5fe786b1a to your computer and use it in GitHub Desktop.
Save ThinGuy/63b804b6532e099c4454f1a5fe786b1a to your computer and use it in GitHub Desktop.
run showrgb and show the name in the appropriate RGB color
#Updated to print full names when they include spaces and to display in columns
showrgb| \
awk '{printf "%s", "\"\\e[1;38;2;"$1";"$2";"$3"m"; for(i=4;i<=NF;i++){printf "%s ", $i};printf "\\e[0m\"\n"}'| \
xargs -L1 echo -e| \
column
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment