diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-11-11 10:33:41 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-11-11 10:33:41 +0100 |
commit | 00d2b1dd2f4cb2c815f4eb748746cdce49875ae5 (patch) | |
tree | ffc1a78873e04633b965a44c96d9d7100116b225 | |
parent | f43e043549ce5df219a97ad5d52bccc0e0abe308 (diff) |
profile/LESS: don't ring the bell ever
Also document the default options.
-rw-r--r-- | dotfiles/profile | 8 |
1 files changed, 7 insertions, 1 deletions
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' |