mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Adds logging functions: glo, glp (PRETTY_FORMATTER)
* glo = git log --oneline * glp (FORMATTER) = git log --pretty=FORMATTER
This commit is contained in:
parent
1120f97305
commit
fb3f13145f
1 changed files with 12 additions and 1 deletions
|
|
@ -30,6 +30,8 @@ alias glg='git log --stat --max-count=5'
|
|||
compdef _git glg=git-log
|
||||
alias glgg='git log --graph --max-count=5'
|
||||
compdef _git glgg=git-log
|
||||
alias glo='git log --oneline'
|
||||
compdef _git glo=git-log
|
||||
alias gss='git status -s'
|
||||
compdef _git gss=git-status
|
||||
alias ga='git add'
|
||||
|
|
@ -60,4 +62,13 @@ compdef ggpull=git
|
|||
alias ggpush='git push origin $(current_branch)'
|
||||
compdef ggpush=git
|
||||
alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
|
||||
compdef ggpnp=git
|
||||
compdef ggpnp=git
|
||||
|
||||
# Pretty log messages
|
||||
function _git_log_prettily(){
|
||||
if ! [ -z $1 ]; then
|
||||
git log --pretty=$1
|
||||
fi
|
||||
}
|
||||
alias glp="_git_log_prettily"
|
||||
compdef glp=git-log
|
||||
Loading…
Add table
Add a link
Reference in a new issue