diff --git a/README.md b/README.md index ce269a4..d5d70a5 100644 --- a/README.md +++ b/README.md @@ -176,13 +176,18 @@ disabled. ## CUSTOMIZING THE PROMPT -### ADD A PS1 PREFIX +### ADD A PREFIX/POSTFIX You can prefix the `LP_PS1` variable with anything you want using the `LP_PS1_PREFIX`. The following example activate a custom window's title: LP_PS1_PREFIX="\[\e]0;\u@\h: \w\a\]" +To postfix the prompt, use the `LP_PS1_POSTFIX` variable. For example, to add a +newline and a single character: + + LP_PS1_POSTFIX="\n>" + Note: the `prompt_tag` function is convenient way to add a prefix. You can thus add a keyword to your different terminals: diff --git a/liquidprompt b/liquidprompt index 3bfd56d..f6f8006 100755 --- a/liquidprompt +++ b/liquidprompt @@ -26,6 +26,7 @@ # Alex Prengère # untracked git files # Aurelien Requiem # Major clean refactoring, variable path length, error codes, several bugfixes. +# Brendan Fahy # postfix variable # Clément Mathieu # Bazaar support # David Loureiro # small portability fix # Étienne Deparis # Fossil support