]> git.rmz.io Git - dotfiles.git/blob - zsh/plugins/mercurial/mercurial.plugin.zsh
merge oh-my-zsh into subdir
[dotfiles.git] / zsh / plugins / mercurial / mercurial.plugin.zsh
1
2 # Mercurial
3 alias hgc='hg commit'
4 alias hgb='hg branch'
5 alias hgba='hg branches'
6 alias hgco='hg checkout'
7 alias hgd='hg diff'
8 alias hged='hg diffmerge'
9 # pull and update
10 alias hgl='hg pull -u'
11 alias hgp='hg push'
12 alias hgs='hg status'
13 # this is the 'git commit --amend' equivalent
14 alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
15
16 function hg_current_branch() {
17 if [ -d .hg ]; then
18 echo hg:$(hg branch)
19 fi
20 }