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 tt
and ntt
commands I discuss in another question of mine. I have tried
echo -ne "\033]0;MY TITLE\007"'
and
PROMPT_COMMAND='echo -ne "\033]0;MY TITLE\007"'
and
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?
PS1
andPROMPT_COMMAND
are not environment variables, soenv
will not show them. Usedeclare -p PS1 PROMPT_COMMAND
instead. (I assume you're using Bash.) – wjandrea Feb 24 '19 at 18:21