On Wed, 12 Mar 2025, Patrick O'Callaghan wrote:
On Wed, 2025-03-12 at 15:39 -0700, Mike Wright wrote:
On 3/12/25 15:03, Patrick O'Callaghan wrote:
On Wed, 2025-03-12 at 15:29 -0400, Todd Zullinger wrote:
That doesn't apply in Konsole for one. Don't know if it applies in other terminal emulators.
You may be talking about different things. PS1 applies to the shell running in the terminal. It sounds like you're thinking of the terminal window's title, perhaps?
I assumed that was what the OP was talking about. If he meant the Shell prompt, perhaps he was unfamiliar with the usual terminology.
-- 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$
His plaint was that the prompt fills the line; he seeks a shorter prompt.
My point was that the question is poorly phrased. It mentions "the
No. It wasn't.
display of the current path in the terminal window", when the actual issue has absolutely nothing to do with terminal windows. The exact same thing would happen in a virtual console or a glass teletype, since it's really about the Shell, not the particular display being used. My mistake for reading what the question said rather than what (in hindsight) it really meant.
A careless reader might get ambiguity, but there was no reason to interpret OP's question as definitely being about the title at the top of the terminal window. OP complained that the directory name filled the line, not really a problem in the title. The line is also in the terminal window.
Others had not problem understanding the question.
A sensible definition of "terminal window" might exclude the frame generated by the window manager. In that case, there whould be no possible ambiguity.