1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-24 17:00:47 +00:00

hg_current_branch added to mercurial plugin

This commit is contained in:
Lucas Sampaio 2012-10-05 17:27:05 -03:00 committed by Robby Russell
parent 5193a1dbc9
commit 51e05b7579

View file

@ -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
}