From 26888c1115ccbd9d2fd7014ab41db8142f076131 Mon Sep 17 00:00:00 2001 From: Marknl Date: Tue, 8 Dec 2015 12:54:43 +0100 Subject: [PATCH] Fix for double ']' and git prompt When not using colors, there is a double ']' at the end of the prompt. Also the git_ps1 was in the wrong statement result. --- templates/prompt.sh.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/prompt.sh.erb b/templates/prompt.sh.erb index 94bb79a..a6050ac 100644 --- a/templates/prompt.sh.erb +++ b/templates/prompt.sh.erb @@ -41,9 +41,9 @@ else left="#{leftblock}" middle="#{separator}" if enablegit == true - right="#{rightblock}]" + right="#{rightblock}\$(__git_ps1)" else - right="#{rightblock}\$(__git_ps1)]" + right="#{rightblock}" end end -%>