From: Nicolas Boisselier Date: Thu, 1 Sep 2016 16:12:38 +0000 (+0100) Subject: hl X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=1eeaed63f503501f7370caf9776c8334f4edb2e4;p=nb.git hl --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index c742d943..2e94ff09 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -183,7 +183,7 @@ json2perl() { ################################################################################# hl(){ #cat | grep --color=always -E "(^|($@))" - perl -MTerm::ANSIColor -pe '$e=qq|'$@'|;$e=~s,/,\\/,g; s/($e)/color("red").$1.color("reset")/ge' + perl -MTerm::ANSIColor -pe '$e=qq@'$@'@;$e=~s,/,\\/,g; s/($e)/color("red").$1.color("reset")/ge' } ls_tree() {