mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Base: Document new Shell prompt formatting options
This commit is contained in:
parent
491d61a2fd
commit
5fb748b333
Notes:
sideshowbarker
2024-07-17 04:49:48 +09:00
Author: https://github.com/adamjoer Commit: https://github.com/SerenityOS/serenity/commit/5fb748b333 Pull-request: https://github.com/SerenityOS/serenity/pull/21589 Reviewed-by: https://github.com/alimpfard
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
|
||||
- `\\w`: a collapsed path (relative to home) to the current directory
|
||||
- `\\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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue