diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-06-16 13:36:03 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-06-16 13:36:03 +1200 |
commit | 17c393d35d90ef0b42a7b00220c003f31e55ec44 (patch) | |
tree | 0e8f485954ebae065842156a78c62904ae949f5b /bash/bashrc.d/prompt.bash | |
parent | Function for easy scratch tempdirs (diff) | |
download | dotfiles-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.bash | 4 |
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 |