scripts

various script and utils
git clone git://z3bra.org/scripts
Log | Files | Refs

commit ce5e21eb9799cfcb56f22e845b47b864f65a23a9
parent b32d68f499b1beb3e5fa6bf5546a20369e10e0b2
Author: z3bra <willy@mailoo.org>
Date:   Fri Oct 17 12:03:30 +0200

Specify file to use, and fix HL colors names

Diffstat:
cdump | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cdump b/cdump @@ -1,7 +1,7 @@ #!/bin/sh FILE=$HOME/etc/Xresources -FILE=$HOME/etc/theme/bow +FILE=$HOME/etc/theme/flashy for NUM in $(seq 0 7); do CN=$(grep "^\*color${NUM}:" $FILE | cut -d':' -f2 | tr -d ' ') @@ -17,7 +17,7 @@ for NUM in $(seq 0 7); do done echo for NUM in $(seq 0 7); do - CN=$(grep "^\*color${NUM}:" $FILE | cut -d':' -f2 | tr -d ' ') + CN=$(grep "^\*color$((${NUM} + 8)):" $FILE | cut -d':' -f2 | tr -d ' ') printf "\e[1;3${NUM}m%s " $CN done printf "\e[0m\n"