1
0
forked from extern/nix-config
donovanglover-nix-config/.archlinux/PKGBUILDs/tari-scripts/colorhex
Donovan Glover c968246923
Move PKGBUILDs to .archlinux
Since fedpkg can access parent directories, having a top-level PKGBUILDs
directory is no longer necessary.
2018-11-13 12:22:24 -05:00

11 lines
530 B
Bash
Executable File
Vendored

#!/bin/bash
colors=($(xrdb -query | sed -n 's/.*color\([0-9]\)/\1/p' | sort -nu | cut -f2))
echo -e "\e[1;37m
Red Green Yellow Blue Magenta Cyan White
─────────────────────────────────────────────────────────────\e[0m"
for i in {1..7}; do echo -en "\e[$((30+$i))m ${colors[i]} \e[0m"; done
echo
for i in {9..15}; do echo -en "\e[1;$((22+$i))m ${colors[i]} \e[0m"; done
echo -e "\n"