diff options
author | mbornet-hl <mbornet.pro@wanadoo.fr> | 2015-11-08 17:44:30 +0100 |
---|---|---|
committer | mbornet-hl <mbornet.pro@wanadoo.fr> | 2015-11-08 17:44:30 +0100 |
commit | 1a0993b91a9e88046cc245dbd0cd0f6bdcb1d95e (patch) | |
tree | 17a2f3e31e1392fc926ea8684235b23764f0ec9a | |
parent | d981136a455ecb551562fbfdbf939b987f3c2fb4 (diff) | |
download | hl-1a0993b91a9e88046cc245dbd0cd0f6bdcb1d95e.zip hl-1a0993b91a9e88046cc245dbd0cd0f6bdcb1d95e.tar.gz hl-1a0993b91a9e88046cc245dbd0cd0f6bdcb1d95e.tar.bz2 |
Added management of WHICH in hl_generic
-rwxr-xr-x | hl_bin/cal | 7 | ||||
-rwxr-xr-x | hl_bin/df | 7 | ||||
-rwxr-xr-x | hl_bin/diff | 7 | ||||
-rwxr-xr-x | hl_bin/dpkg-query | 7 | ||||
-rwxr-xr-x | hl_bin/ethtool | 7 | ||||
-rwxr-xr-x | hl_bin/fdisk | 7 | ||||
-rwxr-xr-x | hl_bin/free | 7 | ||||
-rwxr-xr-x | hl_bin/hl_generic | 7 | ||||
-rwxr-xr-x | hl_bin/ifconfig | 7 | ||||
-rwxr-xr-x | hl_bin/iostat | 7 | ||||
-rwxr-xr-x | hl_bin/iptables | 7 | ||||
-rwxr-xr-x | hl_bin/man | 7 | ||||
-rwxr-xr-x | hl_bin/namei | 7 | ||||
-rwxr-xr-x | hl_bin/netstat | 7 | ||||
-rwxr-xr-x | hl_bin/ps | 7 | ||||
-rwxr-xr-x | hl_bin/strace | 7 | ||||
-rwxr-xr-x | hl_bin/tcpdump | 7 | ||||
-rwxr-xr-x | hl_bin/w | 7 | ||||
-rwxr-xr-x | hl_bin/xxd | 7 |
19 files changed, 114 insertions, 19 deletions
@@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ diff --git a/hl_bin/diff b/hl_bin/diff index 0125919..752b15f 100755 --- a/hl_bin/diff +++ b/hl_bin/diff @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ diff --git a/hl_bin/dpkg-query b/hl_bin/dpkg-query index 0125919..752b15f 100755 --- a/hl_bin/dpkg-query +++ b/hl_bin/dpkg-query @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ diff --git a/hl_bin/ethtool b/hl_bin/ethtool index 0125919..752b15f 100755 --- a/hl_bin/ethtool +++ b/hl_bin/ethtool @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ diff --git a/hl_bin/fdisk b/hl_bin/fdisk index 0125919..752b15f 100755 --- a/hl_bin/fdisk +++ b/hl_bin/fdisk @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ diff --git a/hl_bin/free b/hl_bin/free index 0125919..752b15f 100755 --- a/hl_bin/free +++ b/hl_bin/free @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ diff --git a/hl_bin/hl_generic b/hl_bin/hl_generic index 0125919..752b15f 100755 --- a/hl_bin/hl_generic +++ b/hl_bin/hl_generic @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ diff --git a/hl_bin/ifconfig b/hl_bin/ifconfig index 0125919..752b15f 100755 --- a/hl_bin/ifconfig +++ b/hl_bin/ifconfig @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ diff --git a/hl_bin/iostat b/hl_bin/iostat index 0125919..752b15f 100755 --- a/hl_bin/iostat +++ b/hl_bin/iostat @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ diff --git a/hl_bin/iptables b/hl_bin/iptables index 0125919..752b15f 100755 --- a/hl_bin/iptables +++ b/hl_bin/iptables @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ diff --git a/hl_bin/namei b/hl_bin/namei index 0125919..752b15f 100755 --- a/hl_bin/namei +++ b/hl_bin/namei @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ diff --git a/hl_bin/netstat b/hl_bin/netstat index 0125919..752b15f 100755 --- a/hl_bin/netstat +++ b/hl_bin/netstat @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ diff --git a/hl_bin/strace b/hl_bin/strace index 0125919..752b15f 100755 --- a/hl_bin/strace +++ b/hl_bin/strace @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ diff --git a/hl_bin/tcpdump b/hl_bin/tcpdump index 0125919..752b15f 100755 --- a/hl_bin/tcpdump +++ b/hl_bin/tcpdump @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ @@ -3,7 +3,7 @@ # Script for command output colorization # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 - +# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 - # # This script calls the original programme with all the arguments # it received, and pipes it to "hl" using its name as the "hl" @@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")" PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")" export PATH +if [ "$WHICH" = 1 ]; then + type "$progname" + exit 1 +fi + if [ "$USE_HL" = "no" ]; then # No colorization # ~~~~~~~~~~~~~~~ |