aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-09-08 09:46:01 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-09-08 09:46:01 +1200
commit6fd95f313f42e2c1393db64dc180152ec96b1523 (patch)
tree05f5fcf045981b65e7d6feed051b2bc4d774248c /bash/bashrc.d
parentAdd an issue (diff)
downloaddotfiles-6fd95f313f42e2c1393db64dc180152ec96b1523.tar.gz
dotfiles-6fd95f313f42e2c1393db64dc180152ec96b1523.zip
Fix an issue (silencing Git prompt errors)
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 39ee175b..e7e285a7 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -97,7 +97,7 @@ prompt() {
[[ $iswt = true ]] || return
# Refresh index so e.g. git-diff-files(1) is accurate
- git update-index --refresh >/dev/null
+ git update-index --refresh >/dev/null 2>&1
# Find a local branch, remote branch, or tag (annotated or not), or
# failing all of that just show the short commit ID, in that order