diff options
Diffstat (limited to 'zsh/functions/pure')
-rw-r--r-- | zsh/functions/pure/prompt_pure_setup | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zsh/functions/pure/prompt_pure_setup b/zsh/functions/pure/prompt_pure_setup index 9c2a752..2cf9101 100644 --- a/zsh/functions/pure/prompt_pure_setup +++ b/zsh/functions/pure/prompt_pure_setup @@ -18,8 +18,8 @@ # fastest possible way to check if repo is dirty prompt_pure_git_dirty() { - # check if we're in a git repo - command git rev-parse --is-inside-work-tree &>/dev/null || return + # check if we're at the top level of a git repo + [[ -d .git ]] || return # check if it's dirty command git diff --quiet --ignore-submodules HEAD &>/dev/null |