improve glo alias
This commit is contained in:
parent
19daad760c
commit
80cfd1b2c0
1 changed files with 25 additions and 22 deletions
5
zshrc
5
zshrc
|
|
@ -230,7 +230,6 @@ if command_exists git; then
|
|||
alias ecf='git edit-conflicted-files mate'
|
||||
alias f='git fetch'
|
||||
alias gl='git log'
|
||||
alias glo='git log --oneline --decorate'
|
||||
alias gls='git log --stat'
|
||||
alias gup='git update'
|
||||
alias m='git merge'
|
||||
|
|
@ -239,6 +238,10 @@ if command_exists git; then
|
|||
alias st='git stash'
|
||||
alias stl='git stash list'
|
||||
alias stp='git stash pop'
|
||||
|
||||
function glo() {
|
||||
git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
|
||||
}
|
||||
fi
|
||||
|
||||
# `cd /path/to/a/file` does `cd /path/to/a`
|
||||
|
|
|
|||
Loading…
Reference in a new issue