diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index 2b1ea6d11..4996f04f3 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -112,6 +112,8 @@ prompt_git() { ref=$(git symbolic-ref HEAD 2> /dev/null) || ref="➦ $(git rev-parse --short HEAD 2> /dev/null)" if [[ -n $dirty ]]; then prompt_segment yellow black + elif [[ "$(git config --get oh-my-zsh.hide-dirty 2>/dev/null)" = 1 ]]; then + prompt_segment white black else prompt_segment green $CURRENT_FG fi