mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
Shell: Add support for showing shortened prompt path with ellipsis
This commit is contained in:
parent
4febd31dba
commit
a1cdfe1b54
2 changed files with 16 additions and 4 deletions
|
@ -61,7 +61,7 @@ The value of this variable is used to generate a prompt, the following escape se
|
|||
- `\\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. If an integer follows the `\\`, it specifies the number of trailing components of the path to show
|
||||
- `\\w`, `\\W`: a collapsed path (relative to home) to the current directory. If an integer follows the `\\`, it specifies the number of trailing components of the path to show; if 'w' is used instead of 'W', removed components are shown with ellipsis ("...")
|
||||
- `\\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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue