aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-06-15 15:49:11 +1200
committerTom Ryder <tom@sanctum.geek.nz>2012-06-15 15:49:11 +1200
commitb66af5f7a74d18bbc18cb751b3099d4fb6b82e17 (patch)
treeb4c2ce054edd0a38832d8e13745de4bdf707f82c /bash
parentAlert me if ahead of master (diff)
downloaddotfiles-b66af5f7a74d18bbc18cb751b3099d4fb6b82e17.tar.gz
dotfiles-b66af5f7a74d18bbc18cb751b3099d4fb6b82e17.zip
Nah.
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc5
1 files changed, 1 insertions, 4 deletions
diff --git a/bash/bashrc b/bash/bashrc
index b05a1ea5..2a135bbd 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -96,11 +96,8 @@ function prompt_git {
git branch &>/dev/null || return 1
HEAD="$(git symbolic-ref HEAD 2>/dev/null)"
BRANCH="${HEAD##*/}"
- STATUS=
[[ -n "$(git status 2>/dev/null | \
- grep -F 'branch is ahead of')" ]] && STATUS="${STATUS}>"
- [[ -n "$(git status 2>/dev/null | \
- grep -F 'working directory clean')" ]] || STATUS="${STATUS}!"
+ grep -F 'working directory clean')" ]] || STATUS="!"
echo -n "(git:${BRANCH:-unknown}${STATUS})"
return $?
}