feat(plugins): Add helper function to get current mercurial bookmark (#4970)

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:
Mirko Lelansky 2021-06-12 16:01:26 +02:00 committed by GitHub
parent 3cdc36fc1e
commit 81a6cc5050
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
}