mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
added alias for hub (git wrapper for github) to git plugin
This commit is contained in:
parent
d30d1f3d40
commit
7f2d31260d
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
# Aliases
|
||||
[[ -x $(which hub) ]] && function git(){hub "$@"}
|
||||
alias g='git'
|
||||
alias gst='git status'
|
||||
alias gl='git pull'
|
||||
|
|
@ -13,7 +14,6 @@ alias gba='git branch -a'
|
|||
alias gcount='git shortlog -sn'
|
||||
alias gcp='git cherry-pick'
|
||||
|
||||
|
||||
# Git and svn mix
|
||||
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
|
||||
|
||||
|
|
@ -29,4 +29,4 @@ function current_branch() {
|
|||
# these aliases take advangate of the previous function
|
||||
alias ggpull='git pull origin $(current_branch)'
|
||||
alias ggpush='git push origin $(current_branch)'
|
||||
alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
|
||||
alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue