aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/prompt.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-06-16 13:36:03 +1200
committerTom Ryder <tom@sanctum.geek.nz>2014-06-16 13:36:03 +1200
commit17c393d35d90ef0b42a7b00220c003f31e55ec44 (patch)
tree0e8f485954ebae065842156a78c62904ae949f5b /bash/bashrc.d/prompt.bash
parentFunction for easy scratch tempdirs (diff)
downloaddotfiles-17c393d35d90ef0b42a7b00220c003f31e55ec44.tar.gz
dotfiles-17c393d35d90ef0b42a7b00220c003f31e55ec44.zip
Detect typechanges in git prompt
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r--bash/bashrc.d/prompt.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index f1e51d78..454f2d4b 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -76,10 +76,10 @@ prompt() {
local line
local -i ready modified untracked
while IFS= read -d $'\0' -r line ; do
- if [[ $line == [MADRC]* ]] ; then
+ if [[ $line == [MADRCT]* ]] ; then
ready=1
fi
- if [[ $line == ?[MADRC]* ]] ; then
+ if [[ $line == ?[MADRCT]* ]] ; then
modified=1
fi
if [[ $line == '??'* ]] ; then