Skip to content

Commit

Permalink
git plugin: bring back olg gg aliases
Browse files Browse the repository at this point in the history
by popular demand, see ohmyzsh#3972
  • Loading branch information
ncanceill authored and fforw committed Feb 5, 2016
1 parent e664c9e commit 1e09a52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/git/git.plugin.zsh
Expand Up @@ -104,11 +104,15 @@ ggl() {
git pull origin "${b:=$1}"
}
compdef _git ggl=git-checkout
alias ggpull='ggl'
compdef _git ggpull=git-checkout
ggp() {
[[ "$#" != 1 ]] && b="$(current_branch)"
git push origin "${b:=$1}"
}
compdef _git ggp=git-checkout
alias ggpush='ggp'
compdef _git ggpush=git-checkout
ggpnp() {
ggl "$1" && ggp "$1"
}
Expand All @@ -119,6 +123,8 @@ ggu() {
git pull --rebase origin "${b:=$1}"
}
compdef _git ggu=git-checkout
alias ggpur='ggu'
compdef _git ggpur=git-checkout

alias gignore='git update-index --assume-unchanged'
alias gignored='git ls-files -v | grep "^[[:lower:]]"'
Expand Down

0 comments on commit 1e09a52

Please sign in to comment.