mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
Fixes #5217
This commit is contained in:
parent
644bc641ad
commit
ca8080a5d6
1 changed files with 4 additions and 0 deletions
|
|
@ -128,6 +128,10 @@ prompt_git() {
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt_hg() {
|
prompt_hg() {
|
||||||
|
which hg > /dev/null 2>&1
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
local rev status
|
local rev status
|
||||||
if $(hg id >/dev/null 2>&1); then
|
if $(hg id >/dev/null 2>&1); then
|
||||||
if $(hg prompt >/dev/null 2>&1); then
|
if $(hg prompt >/dev/null 2>&1); then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue