浏览代码

Fix hg call when missing on archlinux with command-not-found (#5218)

Anton 8 年之前
父节点
当前提交
a7e30b26ba
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      themes/agnoster.zsh-theme

+ 1 - 0
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