Update the doc about the postfix, add an author.

This commit is contained in:
nojhan 2013-05-03 21:06:08 +02:00
parent e76781d617
commit f9e9be43aa
2 changed files with 7 additions and 1 deletions

View File

@ -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:

View File

@ -26,6 +26,7 @@
# Alex Prengère <alexprengere@gmail.com> # untracked git files
# Aurelien Requiem <aurelien@requiem.fr> # Major clean refactoring, variable path length, error codes, several bugfixes.
# Brendan Fahy <bmfahy@gmail.com> # postfix variable
# Clément Mathieu <clement@unportant.info> # Bazaar support
# David Loureiro <david.loureiro@sysfera.com> # small portability fix
# Étienne Deparis <etienne.deparis@umaneti.net> # Fossil support