From 0146956dd46fa3b5197791c8d66030f96fedc13b Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sat, 14 May 2022 14:51:55 +0200 Subject: [PATCH] git:core.pager:,less: Use long flag variants --- .config/git/config | 3 ++- .config/zsh/.zprofile | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/git/config b/.config/git/config index 3d0ed31..11888b6 100644 --- a/.config/git/config +++ b/.config/git/config @@ -29,7 +29,8 @@ verbose = true [core] 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] submodule = log tool = nvimdiff diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 2efdb42..6478f5d 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -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.