Permalink
Browse files

hg_current_branch added to mercurial plugin

  • Loading branch information...
lucassmagal committed Oct 5, 2012
1 parent 73f7770 commit a91efab8982b9e4d02ac663c7969974f0d319bc4
Showing with 6 additions and 0 deletions.
  1. +6 −0 plugins/mercurial/mercurial.plugin.zsh
@@ -12,3 +12,9 @@ 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 hg_current_branch() {
+ if [ -d .hg ]; then
+ echo hg:$(hg branch)
+ fi
+}

0 comments on commit a91efab

Please sign in to comment.