From 720ad7b3f263f73c4fa58e85e90cc4bc3dcb7c0d Mon Sep 17 00:00:00 2001 From: Minijackson Date: Wed, 25 Sep 2024 19:17:54 +0200 Subject: common/commandline: auto-exit less if one screen --- common/commandline.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'common') 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 { programs.less = { envVariables = { - LESS = "-W -z-4 -R -J"; + # -W: hilite-unread + # -z-4: scrolling set to screen height - 4 + # -R: display color and link escape sequences + # -J: display status column at left edge of screen + # -F: quit if one screen + LESS = "-W -z-4 -R -J -F"; LESS_TERMCAP_mb = dominantEscapeCode; LESS_TERMCAP_md = dominantEscapeCode; LESS_TERMCAP_so = -- cgit v1.2.3