aboutsummaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-09 14:19:10 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-09 14:19:10 +1200
commitdba9fd867350c9203bf93ef485c89e0dcc5197d2 (patch)
treeb2bb1ad7357f66b8c47e22c84be333e3751e5cc9 /README.markdown
parentUse two more history options (diff)
downloaddotfiles-dba9fd867350c9203bf93ef485c89e0dcc5197d2.tar.gz
dotfiles-dba9fd867350c9203bf93ef485c89e0dcc5197d2.zip
Allow PROMPT_PREFIX and PROMPT_SUFFIX
Also break the prompt definition into multiple lines for readability
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown3
1 files changed, 3 insertions, 0 deletions
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