diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-07-03 15:37:39 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-07-03 15:37:39 +1200 |
commit | 5200c516fa505c6600b3aac99f237712a79e7152 (patch) | |
tree | b8245060c3aae87adbb10a395c1da3cea6bc49fd /bash | |
parent | Use exit values directly for these calls (diff) | |
download | dotfiles-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.bash | 1 |
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' |