mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Adding super-spiffy 'lg' command to the Git plugin, to generate a colour-coded Git log with relative dates and a tree graph.
This commit is contained in:
parent
591a563d34
commit
90beeb9836
1 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,8 @@ alias glg='git log --stat --max-count=5'
|
|||
compdef _git glg=git-log
|
||||
alias glp='git log --pretty=short --graph'
|
||||
compdef _git glp=git-log
|
||||
alias lg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
|
||||
compdef _git lg="git-log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
|
||||
|
||||
# Git and svn mix
|
||||
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue