From 163a6426584056d0a49f45b33bfc2e314296280e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 14 Aug 2016 01:53:17 +1200 Subject: Two extra comments --- bash/bashrc.d/prompt.bash | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bash/bashrc.d/prompt.bash') 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}! -- cgit v1.2.3