aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-07-03 15:37:39 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-07-03 15:37:39 +1200
commit5200c516fa505c6600b3aac99f237712a79e7152 (patch)
treeb8245060c3aae87adbb10a395c1da3cea6bc49fd /bash
parentUse exit values directly for these calls (diff)
downloaddotfiles-5200c516fa505c6600b3aac99f237712a79e7152.tar.gz
dotfiles-5200c516fa505c6600b3aac99f237712a79e7152.zip
Force status check to work around cache problem
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/prompt.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index 5c29efbd..2dde9118 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -33,6 +33,7 @@ function prompt {
&& return 1
$(git rev-parse --is-inside-work-tree 2>/dev/null ) \
|| return 1
+ git status &>/dev/null
branch=$(git symbolic-ref --quiet HEAD 2>/dev/null ) \
|| branch=$(git rev-parse --short HEAD 2>/dev/null ) \
|| branch='unknown'