1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-23 21:01:58 +00:00

Add more capable hg incoming and outgoing count handling

The original hgic and hgoc aliases worked well for the default path, but attempting to call them with a different path failed. I created functions to handle them instead.
This commit is contained in:
Chris Krycho 2013-06-25 15:52:26 -03:00
parent b9baf37739
commit f25e2d2856

View file

@ -8,11 +8,9 @@ alias hgd='hg diff'
alias hged='hg diffmerge'
# pull and update
alias hgi='hg incoming'
alias hgic='hg incoming | grep "changeset" | wc -l'
alias hgl='hg pull -u'
alias hglr='hg pull --rebase'
alias hgo='hg outgoing'
alias hgoc='hg outgoing | grep 'changeset' | wc -l'
alias hgp='hg push'
alias hgs='hg status'
# this is the 'git commit --amend' equivalent
@ -55,3 +53,11 @@ function hg_dirty_choose {
function hg_dirty {
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
}