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 <