]> git.rmz.io Git - dotfiles.git/commitdiff
zsh/git: add 2 line version of glg
authorSamir Benmendil <me@rmz.io>
Thu, 5 Apr 2018 12:29:46 +0000 (13:29 +0100)
committerSamir Benmendil <me@rmz.io>
Thu, 5 Apr 2018 12:29:46 +0000 (13:29 +0100)
zsh/aliases/git.zsh

index 713564e9ef7266613f34b2d4154b09d8f5550bb7..7eb053a233181b034f5a1dd4d443fc520a5e847e 100644 (file)
@@ -47,7 +47,8 @@ alias gcl='git config --list'
 alias gcp='git cherry-pick'
 
 alias gcount='git shortlog -sn'
-alias glg='git --no-pager log --graph --max-count=20 --pretty=tformat:"%Cblue%cd %C(auto)%h%d %s" --date=short'
+alias glg='git --no-pager log --graph --max-count=20 --format:"%Cblue%cd %C(auto)%h%d %s" --date=short'
+alias glg2='git --no-pager log --graph --max-count=20 --date=short --format="%C(blue)%cd %C(auto)%h %C(dim cyan)%an %C(bold green)(%ar)%C(auto)%-d%n %s"'
 function glm { glg "${1:-origin}".. }
 compdef _git glm=git-log
 alias glgl='git log --graph --cherry-mark --boundary --pretty=tformat:"%Cblue%cd %C(auto)%h%d %s" --date=short'