On 3/12/25 3:22 PM, Todd Zullinger wrote:
Robert Moskowitz wrote:
How might I turn off (or change) the display of the current path in a terminal window?
For example I have one terminal window with:
rgm@LX140e-3:~/data/htt/Projects/Critical/drafts/draft-ietf-drip-rid/dki-try2$
That is the whole line is taken up with the current directory!
I would be happy if only the lowest dir level is showing, e.g.:
rgm@LX140e-3:dki-try2$
Or some such.
But not to make a permanent behavior change, as MOST of the time, seeing where I am is helpful.
Set PROMPT_DIRTRIM=1 (or whatever number of directory levels you want to display). Just type that and hit enter, no need to export it or anything.
When done, unset the variable, e.g.: unset PROMPT_DIRTRIM.
$ PROMPT_DIRTRIM=1 rgm@LX140e-3:~/.../dki-try2$
So a reasonable approach.
thanks!