From 0c70579b5fd2fa1e52c12df3c5e94ec338476fc1 Mon Sep 17 00:00:00 2001 From: Alfredo Casanova Date: Tue, 21 Sep 2021 14:33:50 -0300 Subject: [PATCH] Update hex this fix will make the script work for colors 1-9. The way it's done it won't work. --- color-scripts/hex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/color-scripts/hex b/color-scripts/hex index 12e5fb2..efdf78b 100755 --- a/color-scripts/hex +++ b/color-scripts/hex @@ -4,7 +4,7 @@ # Source: http://crunchbang.org/forums/viewtopic.php?pid=135226#p135226 xdef="$HOME/.Xresources" -colors=( $( sed -re '/^!/d; /^$/d; /^#/d; s/(\*color)([0-9]):/\10\2:/g;' $xdef | grep 'color[01][0-9]:' | sort | sed 's/^.*: *//g' ) ) +colors=( $( sed -re '/^!/d; /^$/d; /^#/d; s/(\*color)([0-9]):/\10\2:/g;' $xdef | grep -E 'color[0-9]+:' | sort | sed 's/^.*: *//g' ) ) echo -e "\e[1;37m Black Red Green Yellow Blue Magenta Cyan White