]> git.nbdom.net Git - nb.git/commitdiff
fix hl
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 29 Mar 2024 21:34:21 +0000 (22:34 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 29 Mar 2024 21:34:21 +0000 (22:34 +0100)
etc/profile.d/functions

index c0346827b2b18a66869e3fc613ea29aa60298363..c1665a37b78d8854430bea514f1188ca302011fd 100755 (executable)
@@ -337,7 +337,7 @@ json2perl() {
 
 hl(){ 
        #cat | grep --color=always -E "(^|($@))"
-       perl -MTerm::ANSIColor -pe 'BEGIN{$|=1;}; $e=qq@'$@'@;$e=~s,/,\\/,g; s/($e)/color("red").$1.color("reset")/ge'
+       perl -MTerm::ANSIColor -pe 'BEGIN{$|=1;}; $e=qq@'"$@"'@;$e=~s,/,\\/,g; s/($e)/color("red").$1.color("reset")/ge'
 }
 
 ls_tree() {