diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2012-10-16 09:17:40 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2012-10-16 09:17:40 +1300 |
commit | 0898bf9dbf4766292d176cf75cedd2ad29c455a4 (patch) | |
tree | 703e93c77c0f317b4d4d083cf82f055f77fc98b9 /bash | |
parent | Prevent hints in git status output (diff) | |
download | dotfiles-0898bf9dbf4766292d176cf75cedd2ad29c455a4.tar.gz dotfiles-0898bf9dbf4766292d176cf75cedd2ad29c455a4.zip |
Different phrase to search for
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc | 2 |
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}" ;; |