Add helper function to get the mercurial bookmark.

Add a new function to get the current mercurial bookmark which can be
used in the theme prompts for example.
This commit is contained in:
mlelansky 2016-04-02 16:51:07 +02:00
parent 286c3e5e28
commit e6546fc750

View File

@ -63,3 +63,9 @@ function hgic() {
function hgoc() {
hg outgoing "$@" | grep "changeset" | wc -l
}
function hg_get_bookmark_name() {
if [ $(in_hg) ]; then
echo $(hg id -B)
fi
}