From 00d2b1dd2f4cb2c815f4eb748746cdce49875ae5 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 11 Nov 2021 10:33:41 +0100 Subject: profile/LESS: don't ring the bell ever Also document the default options. --- dotfiles/profile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dotfiles/profile b/dotfiles/profile index e615972..e877c2b 100644 --- a/dotfiles/profile +++ b/dotfiles/profile @@ -20,8 +20,14 @@ export INPUTRC=${HOME}/.config/inputrc export XDG_RUNTIME_DIR=${HOME}/.cache/ ## less configuration +# default options: +# -i ignore case for searching +# -R display color ANSI escapes +# -W highlight first unread line after scroll +# -Q don't ring the bell ever +# -z-3 scroll by 3 lines less than term height +export LESS="-iRWQ -z-3" ### colors -export LESS="-iRW -z-3" export LESS_TERMCAP_mb=$'\E[01;36m' export LESS_TERMCAP_md=$'\E[01;36m' export LESS_TERMCAP_me=$'\E[0m' -- cgit v1.2.3