]> arthur.barton.de Git - ax-zsh.git/commitdiff
git: Bring aliases in line with OhMyZsh (and extend our list!)
authorAlexander Barton <alex@barton.de>
Tue, 1 Jun 2021 13:00:41 +0000 (15:00 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 1 Jun 2021 13:12:34 +0000 (15:12 +0200)
Changed:
* gc: Add "--verbose"
* gd: Remove "--patch-with-stat"
* gst: Use default format

Removed:
* gdc: Deprecated in OhMyZsh ...

New:
* g
* gapa
* gdca
* gdcw
* gdw
* gf
* gfa
* gl
* gp
* gsb
* gsh
* gss

plugins/git/git.zshrc

index 4d796ef48a5590d67a8111fbbc8df5452dbff3b1..de730b7c760540bd7bf2989d826363978b9f9ee6 100644 (file)
@@ -59,9 +59,20 @@ alias parse_git_dirty=git_parse_dirty
 
 ax_vcs_prompt_functions=($ax_vcs_prompt_functions git_prompt)
 
-alias ga="git add"
-alias gc="git commit"
-alias gd="git diff --patch-with-stat"
-alias gdc="git diff --patch-with-stat --cached"
-alias gst="git status --short --branch --untracked"
-alias fix="git diff --name-only | uniq | xargs $EDITOR"
+alias fix="gd --name-only | uniq | xargs $EDITOR"
+alias g="git"
+alias ga="g add"
+alias gapa="ga --patch"
+alias gc="g commit --verbose"
+alias gd="g diff"
+alias gdca="gd --cached"
+alias gdcw="gdca --word-diff"
+alias gdw="gd --word-diff"
+alias gf="g fetch"
+alias gfa="gf --all --prune"
+alias gl="g pull"
+alias gp="g push"
+alias gsb="gss --branch"
+alias gsh="g show"
+alias gss="gst --short"
+alias gst="g status"