diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-14 01:53:17 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-14 01:53:17 +1200 |
commit | 163a6426584056d0a49f45b33bfc2e314296280e (patch) | |
tree | 08283bd0fef6fcc01752ec9189682770a3f46b46 /bash/bashrc.d/prompt.bash | |
parent | Rearrange prompt variable assignments a bit (diff) | |
download | dotfiles-163a6426584056d0a49f45b33bfc2e314296280e.tar.gz dotfiles-163a6426584056d0a49f45b33bfc2e314296280e.zip |
Two extra comments
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r-- | bash/bashrc.d/prompt.bash | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index a0510df5..b4716650 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -97,6 +97,7 @@ prompt() { PS4='+ ' ;; + # Git prompt function git) # Bail if we have no git(1) if ! hash git 2>/dev/null ; then @@ -114,6 +115,7 @@ prompt() { fi branch=${branch##*/} + # Collect symbols representing repository state local state if ! git diff-files --quiet ; then state=${state}! |