$PROMPT_DIRTRIM
–
Trailing Directories in Prompt
$PROMPT_DIRTRIM
is a number and defines how many trailing directories are retained in the prompt.
Links
BashSupport Pro is a Bash IDE with support for $PROMPT_DIRTRIM – try it now!