From e46c59ff4589acfc822c7ec61034c5be39e8d410 Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Wed, 27 May 2015 18:55:39 +0300 Subject: [PATCH] prevent git status leakage when testing if dirty --- pure.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pure.zsh b/pure.zsh index e47ad83..eb8cc00 100644 --- a/pure.zsh +++ b/pure.zsh @@ -149,7 +149,7 @@ prompt_pure_async_git_dirty() { [[ "$untracked_dirty" == "0" ]] && umode="-uno" cd "$*" - command test -n "$(git status --porcelain --ignore-submodules ${umode})" + command test -n "$(git status --porcelain --ignore-submodules ${umode})" &>/dev/null (($? == 0)) && echo "*" }