git:core.pager:,less: Use long flag variants
This commit is contained in:
@@ -29,7 +29,8 @@
|
|||||||
verbose = true
|
verbose = true
|
||||||
[core]
|
[core]
|
||||||
abbrev = 12
|
abbrev = 12
|
||||||
pager = diff-so-fancy | less --tabs=8 -RF
|
pager = diff-so-fancy \
|
||||||
|
| less --tabs=8 --RAW-CONTROL-CHARS --quit-if-one-screen
|
||||||
[diff]
|
[diff]
|
||||||
submodule = log
|
submodule = log
|
||||||
tool = nvimdiff
|
tool = nvimdiff
|
||||||
|
|||||||
@@ -76,12 +76,12 @@ export LESS_TERMCAP_us=$'\e[1;4;31m'
|
|||||||
# Enable mouse wheel support
|
# Enable mouse wheel support
|
||||||
LESS+="${LESS:+ }--mouse --wheel-lines=3"
|
LESS+="${LESS:+ }--mouse --wheel-lines=3"
|
||||||
# Display ANSI color escape sequences
|
# Display ANSI color escape sequences
|
||||||
LESS+="${LESS:+ }-R"
|
LESS+="${LESS:+ }--RAW-CONTROL-CHARS"
|
||||||
# Exit if entire file fits on screen
|
# Exit if entire file fits on screen
|
||||||
# NOTE: Before v530 `less` would need the -X flag as well for -F to be useful.
|
# 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
|
# With v530 it does not enter alternate mode if the content fits in one
|
||||||
# screen.
|
# screen.
|
||||||
LESS+="${LESS:+ }-F"
|
LESS+="${LESS:+ }--quit-if-one-screen"
|
||||||
export LESS
|
export LESS
|
||||||
|
|
||||||
# Show also hidden files per default but ignore files in '.git' directories.
|
# Show also hidden files per default but ignore files in '.git' directories.
|
||||||
|
|||||||
Reference in New Issue
Block a user