Move 'c256' alias to 'colors' script

This commit is contained in:
Wiktor Zykubek 2020-05-13 09:01:10 +02:00
parent 199e28ff67
commit 183f5e8e23

11
.local/bin/scripts/colors Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
# From Arch Wiki (formated)
x="$(tput op)"
y=$(printf %76s)
for i in {0..256}; do
o=00$i
echo -e ${o:${#o}-3:3} "$(tput setaf "$i";tput setab "$i")" "${y// /=}$x"
done