pwd
Segment
Description
This segment print the current dir path.
If user is in a subfolder of its ${HOME}
folder, then ${HOME}
path will be
contracted to ~
.
Its shorten version is particular as it will be dynamically computed to print as much as possible up to 5 character.
Requirements
This segment has no requirement.
Variables
Variables | Default | Description |
---|---|---|
PWD_CHAR |
|
Character to show before the segment information |
PWD_FG |
white | Foreground color of the segment |
PWD_BG |
black | Background color of the segment, only used by v2 |
Examples
Prompt v1 | Prompt v2 | |
---|---|---|
Full Version | ||
Maximum Short Version |
Last update:
December 2, 2021