Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
labs:custom_prompt [2022/01/20 20:14] – [Color Codes] admin | labs:custom_prompt [2022/01/28 16:50] – [Bash Escape Sequences] admin | ||
---|---|---|---|
Line 18: | Line 18: | ||
\h the hostname up to the first `.' | \h the hostname up to the first `.' | ||
\H the hostname | \H the hostname | ||
- | \j | + | \j |
- | shell | + | \l the basename of the shell' |
- | \l the basename of the shell' | + | |
- | name | + | |
\n | \n | ||
\r | \r | ||
Line 34: | Line 32: | ||
| | ||
\w the current working directory | \w the current working directory | ||
- | \W | + | \W |
- | tory | + | |
\! the history number of this command | \! the history number of this command | ||
\# the command number of this command | \# the command number of this command | ||
Line 55: | Line 52: | ||
|Blue | |Blue | ||
|Purple | |Purple | ||
- | |Cyan | 0;36 | + | |Cyan | 0;36 || Light Cyan | 1;36| |
- | |Light Gray | 0;37 || White | + | |Light Gray | 0;37 || White |
===== Examples ===== | ===== Examples ===== |