From 4111ffc493a53fdd618e8f93163bdfec63993e73 Mon Sep 17 00:00:00 2001 From: dryman Date: Mon, 13 May 2013 21:21:42 -0700 Subject: [PATCH] Use LP_MARK_PREFIX="\n" to seperate the prompt into two lines --- README.md | 1 + liquidprompt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e57e4ed..f9c9ae1 100644 --- a/README.md +++ b/README.md @@ -284,6 +284,7 @@ Set to a null string "" if you do not want color. * Prompt mark * `LP_COLOR_MARK` as user * `LP_COLOR_MARK_ROOT` as root + * `LP_MARK_PREFIX="\n"` put the prompt on the second line * Current user * `LP_COLOR_USER_LOGGED` user who logged in * `LP_COLOR_USER_ALT` user but not the one who logged in diff --git a/liquidprompt b/liquidprompt index 6e4f56a..94d2296 100755 --- a/liquidprompt +++ b/liquidprompt @@ -278,6 +278,7 @@ _lp_source_config() LP_MARK_BRACKET_OPEN=${LP_MARK_BRACKET_OPEN:-"["} LP_MARK_BRACKET_CLOSE=${LP_MARK_BRACKET_CLOSE:-"]"} LP_MARK_SHORTEN_PATH=${LP_MARK_SHORTEN_PATH:-" … "} + LP_MARK_PREFIX=${LP_MARK_PREFIX:-""} LP_COLOR_PATH=${LP_COLOR_PATH:-$BOLD} LP_COLOR_PATH_ROOT=${LP_COLOR_PATH_ROOT:-$BOLD_YELLOW} @@ -1709,7 +1710,7 @@ _lp_set_prompt() PS1="${PS1}${LP_VCS}" # add return code and prompt mark - PS1="${PS1}${LP_RUNTIME}${LP_ERR}${LP_MARK}${LP_PS1_POSTFIX}" + PS1="${PS1}${LP_RUNTIME}${LP_ERR}${LP_MARK_PREFIX}${LP_MARK}${LP_PS1_POSTFIX}" # "invisible" parts # Get the current prompt on the fly and make it a title