From ca8080a5d6530185c66a4bc343a5dfc93f8bea25 Mon Sep 17 00:00:00 2001 From: Anton Kuroedov Date: Sun, 10 Jul 2016 19:45:45 +0300 Subject: [PATCH] Fixes #5217 --- themes/agnoster.zsh-theme | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index 103041eef..6aa484760 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -128,6 +128,10 @@ prompt_git() { } prompt_hg() { + which hg > /dev/null 2>&1 + if [[ $? -ne 0 ]]; then + return + fi local rev status if $(hg id >/dev/null 2>&1); then if $(hg prompt >/dev/null 2>&1); then