From 3dbf71ab3ac43ba192b007d11fa15897468831f4 Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Thu, 14 Nov 2019 00:28:37 +0300 Subject: [PATCH] git: aliases: ++git-recall --- etc/soft/git/gitconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/soft/git/gitconfig b/etc/soft/git/gitconfig index caab287..f6ab1f6 100644 --- a/etc/soft/git/gitconfig +++ b/etc/soft/git/gitconfig @@ -51,6 +51,8 @@ ll = !git --no-pager log -1 HEAD && echo lu = !git --no-pager log --left-right --pretty=format:'%C(yellow)%h%Creset - %Cgreen[%cd]%Creset :: %s %C(bold blue)%Creset' --abbrev-commit --graph --color --date=short origin/master...HEAD | nl + recall = !git-recall + alias = !sh -c '[ ! -z $2 ] && git config --global alias.\"$1\" \"$2\" && exit 0 || echo \"usage: git alias \" >&2 && exit 1' - aliases = !git config --get-regexp 'alias.*' | sed 's/alias.//' | sed 's/ / = /'