From 183f5e8e23c1d301832b8f8750b68ff09fcdc703 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Wed, 13 May 2020 09:01:10 +0200 Subject: [PATCH] Move 'c256' alias to 'colors' script --- .local/bin/scripts/colors | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .local/bin/scripts/colors diff --git a/.local/bin/scripts/colors b/.local/bin/scripts/colors new file mode 100755 index 0000000..266d500 --- /dev/null +++ b/.local/bin/scripts/colors @@ -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 +