summaryrefslogtreecommitdiff
path: root/Base
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-03-04 20:17:06 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-04 22:17:18 +0100
commit15b675a804cecbb12524ef8e9fa82ab4c832b1f9 (patch)
tree784efb3ece8e7cc2427b4ca0f0c792704ae1c270 /Base
parent06debb1832bff46cd52cd6e7809c297ba71636ba (diff)
downloadserenity-15b675a804cecbb12524ef8e9fa82ab4c832b1f9.zip
Shell: Document all supported PROMPT flags
Diffstat (limited to 'Base')
-rw-r--r--Base/usr/share/man/man7/Shell-vars.md11
1 files changed, 7 insertions, 4 deletions
diff --git a/Base/usr/share/man/man7/Shell-vars.md b/Base/usr/share/man/man7/Shell-vars.md
index 1107bed799..5c46d90fa5 100644
--- a/Base/usr/share/man/man7/Shell-vars.md
+++ b/Base/usr/share/man/man7/Shell-vars.md
@@ -40,10 +40,13 @@ Its default value is `~/.history`.
`PROMPT` (environment)
The value of this variable is used to generate a prompt, the following escape sequences can be used literally inside the value, and they would expand to their respective values:
-- `\\u` : the current username
-- `\\h` : the current hostname
-- `\\w` : a collapsed path (relative to home) to the current directory
-- `\\p` : the string '$' (or '#' if the user is 'root')
+- `\\a`: bell character (behavior depends on terminal)
+- `\\e`: escape character (`0x1b`)
+- `\\h`: the current hostname
+- `\\p`: the string '$' (or '#' if the user is 'root')
+- `\\u`: the current username
+- `\\w`: a collapsed path (relative to home) to the current directory
+- `\\X`: reset style (foreground and background color, etc)
Any other escaped character shall be ignored.