diff options
author | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2017-07-04 13:33:08 +0200 |
---|---|---|
committer | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2017-07-04 13:34:24 +0200 |
commit | 503bf579576ca66c97b6b93a809cf6ca69ad04fd (patch) | |
tree | 86ce43fc1c2ed86bb0c52ac1b41e5c141f73c8e4 /src | |
parent | 4226691b79845d9b41041e2f64a3a241dcb99f4d (diff) |
exigrep: use less --quite-if-one-screen --no-init
Diffstat (limited to 'src')
-rw-r--r-- | src/src/exigrep.src | 3 |
1 files changed, 2 insertions, 1 deletions
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. |