mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:57:45 +00:00
Base: Document new Shell prompt formatting options
This commit is contained in:
parent
491d61a2fd
commit
5fb748b333
1 changed files with 7 additions and 0 deletions
|
@ -63,6 +63,13 @@ The value of this variable is used to generate a prompt, the following escape se
|
||||||
- `\\u`: the current username
|
- `\\u`: the current username
|
||||||
- `\\w`: a collapsed path (relative to home) to the current directory
|
- `\\w`: a collapsed path (relative to home) to the current directory
|
||||||
- `\\X`: reset style (foreground and background color, etc)
|
- `\\X`: reset style (foreground and background color, etc)
|
||||||
|
- `\\t`: Current time in the 24-hour format HH:MM:SS
|
||||||
|
- `\\T`: Current time in the 12-hour format HH:MM
|
||||||
|
- `\\@`: Current time in the 12-hour format HH:MM AM/PM
|
||||||
|
- `\\D{format}`: Current time, where the string _format_ is passed on to `Core::DateTime::to_string`. If _format_ is empty, a default format string is chosen.
|
||||||
|
- `\\j`: The number of jobs currently managed by the shell
|
||||||
|
- `\\!`: The history number of the next command to be run
|
||||||
|
- `\\\\`: A backslash
|
||||||
|
|
||||||
Any other escaped character shall be ignored.
|
Any other escaped character shall be ignored.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue