From ba0c29e90e97caf5d965c185877919ea9dc77d57 Mon Sep 17 00:00:00 2001 From: druckdev <63563978+druckdev@users.noreply.github.com> Date: Tue, 3 Nov 2020 00:02:05 +0100 Subject: [PATCH] zsh:glog: Add pgp signing infos --- .config/zsh/autoload/glog | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.config/zsh/autoload/glog b/.config/zsh/autoload/glog index eb23f6b..b6273b9 100755 --- a/.config/zsh/autoload/glog +++ b/.config/zsh/autoload/glog @@ -17,15 +17,18 @@ local formatshort='--pretty=format:%C(yellow)%h %Creset%s%C(auto)%d' # This array is stitched together with newlines later local -a format=( '--pretty=format:%C(yellow)' # newline created by this eaten by %- - '%-commit: %H%C(auto)' # yellow commit hash - '%-D%Cblue' # auto colored ref names (if any) - 'Author: %aN %aE%Cred' # blue author mail - 'AuthorDate: %ad%Cblue' # red author date - 'Commit: %cN %cE%Cred' # blue commiter mail - 'CommitDate: %cd%Creset%C(bold)' # red commit date - '' + '%-Commit: %H%C(auto)' # yellow commit hash + ' %D%Cblue' # auto colored ref names (if any) + 'Author: %aN %aE%Cred' # blue author mail + 'AuthorDate: %ad%Cblue' # red author date + 'Commit: %cN %cE%Cred' # blue commiter mail + 'CommitDate: %cd%Cblue' # red commit date + 'Signer: %GS%Cgreen' # signer name + 'Fingerprint: %GF' # pgp fingerprint + '%Creset%C(bold)' # empty line ' %s%Creset' # bold white subject - ' ' # space is here so that the empty line is not eaten when empty body + # With the space the empty line is not eaten when the body is empty: + ' ' '%-b' # body )