Disable prompt_git for oh-my-zsh.hide-status

Fixes issue #4561
This commit is contained in:
Michael Smith 2015-10-29 11:40:05 -07:00
commit b0cf2e2fd8

View file

@ -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
}