From 4c70dcf7391b45bfb8c811c80f1d244fb9ab08ca Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 26 Oct 2022 13:41:17 +0300 Subject: [PATCH] git log --grep alias --- zsh/.zsh/rc/010git.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/.zsh/rc/010git.zsh b/zsh/.zsh/rc/010git.zsh index 3749e22..c26ff58 100644 --- a/zsh/.zsh/rc/010git.zsh +++ b/zsh/.zsh/rc/010git.zsh @@ -10,6 +10,10 @@ alias Gl="git log --oneline --graph --decorate=short" alias Gld="git log --format=format:'%ai %Cgreen%h%Creset %s'" alias Gr="git remote -v" +Gg() { + git log -i --grep=$1 +} + bindkey -s "OR" " git status --short\n" # F3 export TOG_COLORS=1 -- 2.48.1