From dba9fd867350c9203bf93ef485c89e0dcc5197d2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 9 Jun 2015 14:19:10 +1200 Subject: Allow PROMPT_PREFIX and PROMPT_SUFFIX Also break the prompt definition into multiple lines for readability --- README.markdown | 3 +++ 1 file changed, 3 insertions(+) (limited to 'README.markdown') diff --git a/README.markdown b/README.markdown index db9c3d0c..4f50e384 100644 --- a/README.markdown +++ b/README.markdown @@ -141,6 +141,9 @@ It expands based on context to include these elements in this order: * The number of running background jobs, if non-zero * The exit status of the last command, if non-zero +You can set `PROMPT_PREFIX` and/or `PROMPT_SUFFIX` too, which do about what +you’d expect. + This is all managed within the `prompt` function. There’s some mildly hacky logic on `tput` codes included such that it should work correctly for most common terminals using both `termcap(5)` and `terminfo(5)`, including \*BSD -- cgit v1.2.3