This commit is contained in:
Anton Kuroedov 2016-07-10 19:45:45 +03:00
commit ca8080a5d6

View file

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