Skip to content

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
pwd v1 full
pwd v2 full
Maximum Short Version
pwd v1 short
pwd v2 short


Last update: December 2, 2021
Back to top