aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-14 01:32:31 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-14 01:32:31 +1200
commitf5be9141d50b9e83a13a5383e87a15e52b9d57d8 (patch)
treedccf2d4177d73641e21c35774892e311597fad18 /bash
parentMerge branch 'openbsd' (diff)
downloaddotfiles-f5be9141d50b9e83a13a5383e87a15e52b9d57d8.tar.gz
dotfiles-f5be9141d50b9e83a13a5383e87a15e52b9d57d8.zip
Use --quiet flag for prompt git-rev-parse(1) call
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/prompt.bash2
1 files changed, 1 insertions, 1 deletions
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