From: Nicolas Boisselier Date: Wed, 26 Aug 2026 17:35:27 +0000 (+0200) Subject: etc/profile.d/functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=3060c5a2ef476a3ca153b18317a1d44dfe905027;p=nb.git etc/profile.d/functions --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 7d72c8b2..af5f4c77 100755 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -333,7 +333,7 @@ json2perl() { hl(){ #cat | grep --color=always -E "(^|($@))" local color=red - if [ "$1" = "-color" ]; then + if [ "$1" = "-c" ] || [ "$1" = "--color" ] || [ "$1" = "-color" ]; then shift color=$1 shift