From: Nicolas Boisselier Date: Sat, 14 Mar 2026 08:25:28 +0000 (+0100) Subject: etc/profile.d/functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;ds=inline;p=nb.git etc/profile.d/functions --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 9c23e5c5..7d72c8b2 100755 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -338,7 +338,7 @@ hl(){ color=$1 shift fi - perl -MTerm::ANSIColor -pe 'BEGIN{$|=1;}; $e=qq@'"$@"'@;$e=~s,/,\\/,g; s/($e)/color("'$color'").$1.color("reset")/ge' + perl -MTerm::ANSIColor -pe 'BEGIN{$|=1;}; $e=qq@'"$*"'@;$e=~s,/,\\/,g; s/($e)/color("'$color'").$1.color("reset")/ge' } ls_tree() {