This question already has an answer here:
- How to change Gnome-Terminal title? 13 answers
I have 2 laptops, A and B, same OS (ubuntu 18.04). My gnome terminal tab titles on A always show current path in the tab, whereas B show it the one I tell it via the
ntt commands I discuss in another question of mine. I have tried
echo -ne "\033]0;MY TITLE\007"'
PROMPT_COMMAND='echo -ne "\033]0;MY TITLE\007"'
gnome-terminal --title="MY TITLE HERE"
but nothing works, it keeps showing the current folder in tab title. Whereas on laptop B, the same commands work! This is a slightliy different question from How to change Gnome-Terminal title?, because none of the 3 techniques above work.
I remember fiddling around with this a few weeks ago, I must have put something in place that dynamically updates the title every time there is a new prompt, so when I try the echo -ne, it immediately gets overwritten. The env commands shows that there is no PS1 or PROMPT_COMMAND already in place.
Any ideas how to fix this so that echo -ne works again? Is there like a settings file for gnome terminal, it loads every time it starts?