aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/prompt.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/prompt.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}!