diff options
author | Minijackson <minijackson@riseup.net> | 2024-09-25 19:17:54 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2024-09-25 19:18:27 +0200 |
commit | 720ad7b3f263f73c4fa58e85e90cc4bc3dcb7c0d (patch) | |
tree | f7eefec8c8a77bcbfe9e7705233d2b65e387a11b /common | |
parent | fa441ab3b192ac8d24188abb85968e83f1e3f5f4 (diff) | |
download | nixos-config-reborn-720ad7b3f263f73c4fa58e85e90cc4bc3dcb7c0d.tar.gz nixos-config-reborn-720ad7b3f263f73c4fa58e85e90cc4bc3dcb7c0d.zip |
common/commandline: auto-exit less if one screen
Diffstat (limited to 'common')
-rw-r--r-- | common/commandline.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/common/commandline.nix b/common/commandline.nix index c779fdd..96a0df0 100644 --- a/common/commandline.nix +++ b/common/commandline.nix | |||
@@ -86,7 +86,12 @@ in { | |||
86 | 86 | ||
87 | programs.less = { | 87 | programs.less = { |
88 | envVariables = { | 88 | envVariables = { |
89 | LESS = "-W -z-4 -R -J"; | 89 | # -W: hilite-unread |
90 | # -z-4: scrolling set to screen height - 4 | ||
91 | # -R: display color and link escape sequences | ||
92 | # -J: display status column at left edge of screen | ||
93 | # -F: quit if one screen | ||
94 | LESS = "-W -z-4 -R -J -F"; | ||
90 | LESS_TERMCAP_mb = dominantEscapeCode; | 95 | LESS_TERMCAP_mb = dominantEscapeCode; |
91 | LESS_TERMCAP_md = dominantEscapeCode; | 96 | LESS_TERMCAP_md = dominantEscapeCode; |
92 | LESS_TERMCAP_so = | 97 | LESS_TERMCAP_so = |