From: Nicolas Boisselier Date: Fri, 29 Mar 2024 18:55:13 +0000 (+0100) Subject: hl flush stdout X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=f2ba9d36792ed4258f963c81844ae8ac360729b6;p=nb.git hl flush stdout --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 5c50ae37..c0346827 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 '$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() {