Move 'c256' alias to 'colors' script

This commit is contained in:
samedamci 2020-05-13 09:01:10 +02:00
parent a7bfedaca8
commit 3907db9f34
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894

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