FYI, there is a built-in \w
"shortener" in Bash 4+:
PROMPT_DIRTRIM=3
will shorten /var/lib/whatever/foo/bar/baz
to .../foo/bar/baz
.
FYI, there is a built-in \w
"shortener" in Bash 4+:
PROMPT_DIRTRIM=3
will shorten /var/lib/whatever/foo/bar/baz
to .../foo/bar/baz
.