a570f4b7f332d6a1f7b25e1d5fd9a3954e379065
- Author
- ncanceill <nicolas.canceill@ens-cachan.org>
- Committer
- ncanceill <nicolas.canceill@ens-cachan.org>
- Date
Message
git plugin: bring back olg gg aliases
by popular demand, see #3972
Diff
1diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
2index e42e096883ec829c52c562b188717c4f177e6d6c..28227dcb1e26f62983e30fada75e52cb88453d9c 100644
3--- a/plugins/git/git.plugin.zsh
4+++ b/plugins/git/git.plugin.zsh
5@@ -104,11 +104,15 @@ ggl() {
6 git pull origin "${b:=$1}"
7 }
8 compdef _git ggl=git-checkout
9+alias ggpull='ggl'
10+compdef _git ggpull=git-checkout
11 ggp() {
12 [[ "$#" != 1 ]] && b="$(current_branch)"
13 git push origin "${b:=$1}"
14 }
15 compdef _git ggp=git-checkout
16+alias ggpush='ggp'
17+compdef _git ggpush=git-checkout
18 ggpnp() {
19 ggl "$1" && ggp "$1"
20 }
21@@ -119,6 +123,8 @@ ggu() {
22 git pull --rebase origin "${b:=$1}"
23 }
24 compdef _git ggu=git-checkout
25+alias ggpur='ggu'
26+compdef _git ggpur=git-checkout
27
28 alias gignore='git update-index --assume-unchanged'
29 alias gignored='git ls-files -v | grep "^[[:lower:]]"'