From a7d727b8005338825d5ec656692cce2a219f2a8b Mon Sep 17 00:00:00 2001 From: Arialdo Martini Date: Tue, 3 Sep 2013 07:54:15 +0200 Subject: [PATCH] The prompt is displayed in two lines --- prompt.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prompt.sh b/prompt.sh index e6a1ef2..a31a9eb 100644 --- a/prompt.sh +++ b/prompt.sh @@ -88,6 +88,7 @@ function build_prompt { can_fast_forward=true will_merge=true will_rebase=true + two_lines=true enrich ${on_a_tag} "⌫" enrich ${detached} "⚯" "${alert}" @@ -118,7 +119,9 @@ function build_prompt { fi fi - PS1="${PS1}${reset}∙ " + if [[ ${two_lines} ]]; then break="\n\r"; fi + PS1="${PS1}${reset}${break}∙ \w" + }