From b0cf2e2fd8a306b96935d6e312808783ca12ea63 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 29 Oct 2015 11:40:05 -0700 Subject: [PATCH] Disable prompt_git for oh-my-zsh.hide-status Fixes issue #4561 --- themes/agnoster.zsh-theme | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index 103041eef..1f538b723 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -196,8 +196,10 @@ build_prompt() { prompt_virtualenv prompt_context prompt_dir - prompt_git - prompt_hg + if [[ "$(command git config --get oh-my-zsh.hide-status 2>/dev/null)" != "1" ]]; then + prompt_git + prompt_hg + fi prompt_end }