aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d')
-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 3fc7ad13..69801b90 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -130,7 +130,7 @@ prompt() {
state=${state}'!'
# Changes are staged
- git diff-index --cached --quiet HEAD ||
+ git diff-index --cached --quiet HEAD 2>/dev/null ||
state=${state}'+'
# There are some untracked and unignored files