aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-14 01:53:17 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-14 01:53:17 +1200
commit163a6426584056d0a49f45b33bfc2e314296280e (patch)
tree08283bd0fef6fcc01752ec9189682770a3f46b46 /bash
parentRearrange prompt variable assignments a bit (diff)
downloaddotfiles-163a6426584056d0a49f45b33bfc2e314296280e.tar.gz
dotfiles-163a6426584056d0a49f45b33bfc2e314296280e.zip
Two extra comments
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/prompt.bash2
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}!