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 }