diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index da1f9b6e6..9c8340125 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -197,8 +197,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 }