mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-18 03:40:08 +00:00
Merge pull request #1913 from chriskrycho/patch-2
Add more capable hg incoming and outgoing count handling
This commit is contained in:
commit
bc3cadf5c8
1 changed files with 8 additions and 2 deletions
|
@ -8,11 +8,9 @@ alias hgd='hg diff'
|
||||||
alias hged='hg diffmerge'
|
alias hged='hg diffmerge'
|
||||||
# pull and update
|
# pull and update
|
||||||
alias hgi='hg incoming'
|
alias hgi='hg incoming'
|
||||||
alias hgic='hg incoming | grep "changeset" | wc -l'
|
|
||||||
alias hgl='hg pull -u'
|
alias hgl='hg pull -u'
|
||||||
alias hglr='hg pull --rebase'
|
alias hglr='hg pull --rebase'
|
||||||
alias hgo='hg outgoing'
|
alias hgo='hg outgoing'
|
||||||
alias hgoc='hg outgoing | grep 'changeset' | wc -l'
|
|
||||||
alias hgp='hg push'
|
alias hgp='hg push'
|
||||||
alias hgs='hg status'
|
alias hgs='hg status'
|
||||||
# this is the 'git commit --amend' equivalent
|
# this is the 'git commit --amend' equivalent
|
||||||
|
@ -55,3 +53,11 @@ function hg_dirty_choose {
|
||||||
function hg_dirty {
|
function hg_dirty {
|
||||||
hg_dirty_choose $ZSH_THEME_HG_PROMPT_DIRTY $ZSH_THEME_HG_PROMPT_CLEAN
|
hg_dirty_choose $ZSH_THEME_HG_PROMPT_DIRTY $ZSH_THEME_HG_PROMPT_CLEAN
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function hgic() {
|
||||||
|
hg incoming "$@" | grep "changeset" | wc -l
|
||||||
|
}
|
||||||
|
|
||||||
|
function hgoc() {
|
||||||
|
hg outgoing "$@" | grep "changeset" | wc -l
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue