From 1fbdc60b6bf8c47ad3470076caf73194a39024d1 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sat, 14 May 2022 18:57:02 +0200 Subject: [PATCH] glog: Disable `--quit-if-one-screen` in `$LESS` Make glog always open the output of `git show` in a **real** pager by disabling `--quit-if-one-screen`. --- .config/zsh/autoload/git/glog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/autoload/git/glog b/.config/zsh/autoload/git/glog index 4b1ecb1..caed4c3 100755 --- a/.config/zsh/autoload/git/glog +++ b/.config/zsh/autoload/git/glog @@ -119,5 +119,5 @@ fi # Display an ascii graph of the commits in the above format and pipe that into # fzf. git log "$formatshort" --graph "$dateshort" --color=always "$@" \ -| fzf "${fzf_args[@]}" +| env LESS="$LESS${LESS:+ }-+F" fzf "${fzf_args[@]}" return 0