mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 08:50:08 +00:00
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:
parent
3cdc36fc1e
commit
81a6cc5050
1 changed files with 6 additions and 0 deletions
|
@ -63,3 +63,9 @@ function hgic() {
|
||||||
function hgoc() {
|
function hgoc() {
|
||||||
hg outgoing "$@" | grep "changeset" | wc -l
|
hg outgoing "$@" | grep "changeset" | wc -l
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function hg_get_bookmark_name() {
|
||||||
|
if [ $(in_hg) ]; then
|
||||||
|
echo $(hg id -B)
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue