]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/functions
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 26 Aug 2026 17:35:27 +0000 (19:35 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 26 Aug 2026 17:35:27 +0000 (19:35 +0200)
etc/profile.d/functions

index 7d72c8b28d6a4156c4c3976b1df2181e66159c3a..af5f4c7730d212c2aefea3d9b7638c5dad145610 100755 (executable)
@@ -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