diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index 63452378d..4a058b386 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -228,7 +228,9 @@ prompt_git() { zstyle ':vcs_info:*' enable git zstyle ':vcs_info:*' get-revision true - zstyle ':vcs_info:*' check-for-changes true + if [[ -n $dirty ]]; then + zstyle ':vcs_info:*' check-for-changes true + fi zstyle ':vcs_info:*' stagedstr '✚' zstyle ':vcs_info:*' unstagedstr '±' zstyle ':vcs_info:*' formats ' %u%c'