Save horizontal terminal line real estate by removing parentheses from the prompt branch display. The branch is already sufficiently visually delimited by the preceding space character. Signed-off-by: Kim Phillips <kim.phillips@xxxxxxxxxxxxx> --- contrib/completion/git-completion.bash | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 840ae38..1373fd4 100755 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -268,7 +268,6 @@ __git_ps1 () b="$(cut -c1-7 "$g/HEAD" 2>/dev/null)..." || b="unknown" - b="($b)" } fi @@ -312,7 +311,7 @@ __git_ps1 () fi local f="$w$i$s$u" - printf "${1:- (%s)}" "$c${b##refs/heads/}${f:+ $f}$r$p" + printf "${1:- %s}" "$c${b##refs/heads/}${f:+ $f}$r$p" fi } -- 1.7.4.5.2.g95442 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html