diff options
Diffstat (limited to 'bash/bashrc')
-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}" ;; |