ohmyzsh/plugins/mercurial/mercurial.plugin.zsh

23 lines
481 B
Bash
Raw Normal View History

2011-06-10 13:38:59 +00:00
# Mercurial
alias hgc='hg commit'
alias hgb='hg branch'
2011-06-10 13:38:59 +00:00
alias hgba='hg branches'
alias hgco='hg checkout'
alias hgd='hg diff'
alias hged='hg diffmerge'
# pull and update
alias hgi='hg incoming'
alias hgl='hg pull -u'
alias hgo='hg outgoing'
alias hgp='hg push'
alias hgs='hg status'
2011-06-10 13:38:59 +00:00
# this is the 'git commit --amend' equivalent
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
function hg_current_branch() {
if [ -d .hg ]; then
echo hg:$(hg branch)
fi
}