From 503bf579576ca66c97b6b93a809cf6ca69ad04fd Mon Sep 17 00:00:00 2001 From: "Heiko Schlittermann (HS12-RIPE)" Date: Tue, 4 Jul 2017 13:33:08 +0200 Subject: [PATCH] exigrep: use less --quite-if-one-screen --no-init --- src/src/exigrep.src | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/src/exigrep.src b/src/src/exigrep.src index 45bdc2c80..851ca63bb 100644 --- a/src/src/exigrep.src +++ b/src/src/exigrep.src @@ -239,11 +239,12 @@ if (-t 1 and $use_pager) { foreach ($ENV{PAGER}//(), 'less', 'more') { + local $ENV{LESS} .= ' --no-init --quit-if-one-screen'; open(my $pager, '|-', $_) or next; select $pager; last; } -} + } # If file arguments are given, open each one and process according as it is # is compressed or not. -- 2.25.1