git:core.pager:,less: Use long flag variants

This commit is contained in:
2022-05-14 14:51:55 +02:00
parent d5350276dc
commit 0146956dd4
2 changed files with 4 additions and 3 deletions

View File

@@ -76,12 +76,12 @@ export LESS_TERMCAP_us=$'\e[1;4;31m'
# Enable mouse wheel support
LESS+="${LESS:+ }--mouse --wheel-lines=3"
# Display ANSI color escape sequences
LESS+="${LESS:+ }-R"
LESS+="${LESS:+ }--RAW-CONTROL-CHARS"
# Exit if entire file fits on screen
# NOTE: Before v530 `less` would need the -X flag as well for -F to be useful.
# With v530 it does not enter alternate mode if the content fits in one
# screen.
LESS+="${LESS:+ }-F"
LESS+="${LESS:+ }--quit-if-one-screen"
export LESS
# Show also hidden files per default but ignore files in '.git' directories.