ohmyzsh/plugins/mercurial/mercurial.plugin.zsh
2012-02-05 15:59:33 +02:00

20 lines
450 B
Bash

# Mercurial
alias hgc='hg commit'
alias hgb='hg branch'
alias hgba='hg branches'
alias hgco='hg checkout'
alias hgd='hg diff'
alias hged='hg diffmerge'
# pull and update
alias hgl='hg pull -u'
alias hgp='hg push'
alias hgs='hg status'
# this is the 'git commit --amend' equivalent
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
function current_branch_hg() {
ref=$(hg branch 2> /dev/null) || return
echo ${ref#refs/heads/}
}