1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-27 19:06:15 +08:00
ohmyzsh/plugins/mercurial/mercurial.plugin.zsh

26 lines
640 B
Bash
Raw Normal View History

2011-06-10 21:38:59 +08:00
# Mercurial
alias hgc='hg commit'
alias hgb='hg branch'
2011-06-10 21:38:59 +08:00
alias hgba='hg branches'
2013-04-09 18:11:51 +08:00
alias hgbk='hg bookmarks'
2011-06-10 21:38:59 +08:00
alias hgco='hg checkout'
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'
2011-06-10 21:38:59 +08: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
}