summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorAnton <xecu91@gmail.com>2016-07-22 17:04:35 +0400
committerMarc Cornellà <marc.cornella@live.com>2016-07-22 15:04:35 +0200
commita7e30b26baa94bac99d9d05cf642bd1942ae1787 (patch)
treef5c5b6aa29eab53e5e95c358cf1ada5bf1aad62f /themes
parentcc8285b1f708c33338d280bbb5481dc93bafa458 (diff)
downloadzsh-a7e30b26baa94bac99d9d05cf642bd1942ae1787.tar.gz
zsh-a7e30b26baa94bac99d9d05cf642bd1942ae1787.tar.bz2
zsh-a7e30b26baa94bac99d9d05cf642bd1942ae1787.zip
Fix hg call when missing on archlinux with command-not-found (#5218)
Diffstat (limited to 'themes')
-rw-r--r--themes/agnoster.zsh-theme1
1 files changed, 1 insertions, 0 deletions
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
index 103041eef..da1f9b6e6 100644
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -128,6 +128,7 @@ prompt_git() {
}
prompt_hg() {
+ (( $+commands[hg] )) || return
local rev status
if $(hg id >/dev/null 2>&1); then
if $(hg prompt >/dev/null 2>&1); then