From: Nicolas Boisselier Date: Fri, 29 Mar 2024 21:34:21 +0000 (+0100) Subject: fix hl X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=09e816a706ed2bf2792c3b5f0d6b0d4081a15318;p=nb.git fix hl --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index c0346827..c1665a37 100755 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -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() {