diff --git a/prompt.zsh b/prompt.zsh index 229c76b..c3e2bfc 100644 --- a/prompt.zsh +++ b/prompt.zsh @@ -34,6 +34,7 @@ zstyle ':vcs_info:git*' actionformats ' %b|%a' # Fastest possible way to check if repo is dirty git_dirty() { + [ -d .git ] || return git diff --quiet --ignore-submodules HEAD 2>/dev/null; [ $? -eq 1 ] && echo '*' }