mercurial.plugin.zsh 432 B

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