From e3689fe68b7795e87f8b8e013184a033ca29679c Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Fri, 23 May 2025 18:18:35 +0200 Subject: [PATCH] zsh:glog: Fix some non-local variables --- .config/zsh/autoload/git/glog | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/zsh/autoload/git/glog b/.config/zsh/autoload/git/glog index e457b83..3f7c1fa 100755 --- a/.config/zsh/autoload/git/glog +++ b/.config/zsh/autoload/git/glog @@ -51,19 +51,19 @@ local date="$dateshort %T %z" # year time timezone # Use git's pager in the preview window (and with it any special highlighting # tool, such as diff-so-fancy) -local pager -pager="$(git config --get --default="" core.pager)" -into_pager="${pager:+|} $pager" +local pager="$(git config --get --default="" core.pager)" +local into_pager="${pager:+|} $pager" # NOTE: use read for a bit better readability of the code since less needs # quoting and formatting is easier +local get_hash_cmd show_cmd read -r -d '' get_hash_cmd <