aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-10-16 09:17:40 +1300
committerTom Ryder <tom@sanctum.geek.nz>2012-10-16 09:17:40 +1300
commit0898bf9dbf4766292d176cf75cedd2ad29c455a4 (patch)
tree703e93c77c0f317b4d4d083cf82f055f77fc98b9 /bash
parentPrevent hints in git status output (diff)
downloaddotfiles-0898bf9dbf4766292d176cf75cedd2ad29c455a4.tar.gz
dotfiles-0898bf9dbf4766292d176cf75cedd2ad29c455a4.zip
Different phrase to search for
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc b/bash/bashrc
index 794e38aa..fc9e94f4 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -197,7 +197,7 @@ function prompt {
HEAD="$(git symbolic-ref HEAD 2>/dev/null)"
branch="${HEAD##*/}"
[[ -n "$(git status 2>/dev/null | \
- grep -F 'working directory clean')" ]] || state="!"
+ grep -F 'nothing to commit')" ]] || state="!"
printf '(git:%s)' "${branch:-unknown}${state}"
;;