about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2021-01-08 07:56:32 +0000
committerDavid Morgan <djm_uk@protonmail.com>2021-01-08 07:56:32 +0000
commit5b52e9a75118f513d8f244a0b52ff79a7f365bab (patch)
treead72c9c49aed633d11dcd56ad2af75bc616e15c2
parent468e58aee46c07760d173de81514813c9b133493 (diff)
downloaddotfiles-5b52e9a75118f513d8f244a0b52ff79a7f365bab.tar.gz
Add some git aliases from omz
-rw-r--r--.zshrc13
1 files changed, 13 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index 3453396..6b301c8 100644
--- a/.zshrc
+++ b/.zshrc
@@ -44,6 +44,19 @@ alias pp='pushbullet push "Pixel" link "${1}" "${1}"'
 alias f='fasd -f'
 alias v='f -e vim'
 
+# some extra git aliases, based on the omz git plugin
+alias glgg='git log --graph'
+alias glgga='git log --graph --decorate --all'
+alias glgm='git log --graph --max-count=10'
+alias gl1='git log --oneline --decorate'
+alias glol="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"
+alias glols="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --stat"
+alias glod="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'"
+alias glods="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' --date=short"
+alias glola="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all"
+alias glog='git log --oneline --decorate --graph'
+alias gloga='git log --oneline --decorate --graph --all'
+
 #autoload -Uz compinit
 compinit