]> Sergey Matveev's repositories - dotfiles.git/commitdiff
git log --grep alias
authorSergey Matveev <stargrave@stargrave.org>
Wed, 26 Oct 2022 10:41:17 +0000 (13:41 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 26 Oct 2022 10:41:17 +0000 (13:41 +0300)
zsh/.zsh/rc/010git.zsh

index 3749e22b6fffbea191835c5d85b9166ead50acb7..c26ff58b3fc047c6b24a257da5033fa211b033bb 100644 (file)
@@ -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 "\eOR" " git status --short\n" # F3
 
 export TOG_COLORS=1