I want, that my terminal tabs have the current working directory as the tab-title and the terminal window have the current working directory of the "active/in front" tab as their window-title.
I can manually set the window title for all the current and all new windows in the preferences dialog. I can manually set the tab title for the current tab with rightlick->change tab title.
Is there a preference for newly created tabs?
Everything above has the problem, that the value does not update after a cd
.
Is there any built-in way from xfce4-terminal to do this automatically?
Without an automatic solution the titles are mostly useless for me :/
Follow-Up: Can I use something like the last executed command as the tab/window title? Seems to me, there is no built-in substitution for this.
export PS1="\[$(xtitle '\
${PWD##*/}`')]$oldprompt"but that always display
'around the title. https://stackoverflow.com/a/1371283/205696 I also tried to use
basename` I do not know how to escape properly. – dotnetCarpenter Nov 11 '18 at 16:11