9b05a44387f84ae0b24e24023286534d0bbdf65f

Author
Steven G. Harms <sharms@shopittome.com>
Committer
Steven G. Harms <sharms@shopittome.com>
Date

Message

Adds glo; glp (arg)

* glo := git log --oneline
* glp := git log --pretty=arg

Diff

 1diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
 2index c1b382b2c2df245817fb2998b9c31ea4144de526..63a276d257f4f9f07d3b82287f873609310f19d2 100644
 3--- a/plugins/git/git.plugin.zsh
 4+++ b/plugins/git/git.plugin.zsh
 5@@ -30,6 +30,8 @@ alias glg='git log --stat --max-count=5'
 6 compdef _git glg=git-log
 7 alias glgg='git log --graph --max-count=5'
 8 compdef _git glgg=git-log
 9+alias glo='git log --oneline'
10+compdef _git glo=git-log
11 alias gss='git status -s'
12 compdef _git gss=git-status
13 alias ga='git add'
14@@ -59,3 +61,12 @@ alias ggpush='git push origin $(current_branch)'
15 compdef ggpush=git
16 alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
17 compdef ggpnp=git
18+
19+# Pretty log messages
20+function _git_log_prettily(){
21+  if ! [ -z $1 ]; then
22+    git log --pretty=$1
23+  fi
24+}
25+alias glp="_git_log_prettily"
26+compdef _git glp=git-log