From f5be9141d50b9e83a13a5383e87a15e52b9d57d8 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 14 Aug 2016 01:32:31 +1200 Subject: Use --quiet flag for prompt git-rev-parse(1) call --- bash/bashrc.d/prompt.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/bashrc.d') diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index feae7833..a0711d26 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -122,7 +122,7 @@ prompt() { if [[ -n $(git ls-files --others --exclude-standard) ]] ; then state=${state}? fi - if git rev-parse --verify refs/stash >/dev/null 2>&1 ; then + if git rev-parse --quiet --verify refs/stash >/dev/null ; then state=${state}^ fi -- cgit v1.2.3