I am using terminator as my terminal. Currently its title always comes prefixed with raj@raj-Lenovo
which is my username and host. SO if I cd ~/test
. It would show raj@raj-Lenovo ~/test
as the title.It makes it difficult to read the entire title when I alt+Tab
. Is there anyway to change the prefix permanently? It would just show ~/test
. I couldnt find it through GUI
.
Asked
Active
Viewed 3,506 times
0

rajeevmaash
- 111
1 Answers
1
Most terminal emulators have an option to set the title bar default text, and it should work for terminator too.
Maybe this what you want?
PROMPT_COMMAND='echo -en "\033]0; $("pwd") \a"'
It should change the title automatically even when you add new tab. See this link
and if it works you can modify the Exec
line in the corresponding desktop file.

sudodus
- 46,324
- 5
- 88
- 152
Exec
line? – rajeevmaash Jan 04 '17 at 17:41Hello World
. But what I like is to just removeraj@Lenovo
from title. Still have my working directory in title. – rajeevmaash Jan 04 '17 at 17:44find /usr/share -name terminator.desktop
I find the desktop files of 'my' terminal emulators with corresponding commands. 2. You can check at this link: https://askubuntu.com/questions/774532/how-to-change-terminal-title-in-ubuntu-16-04 but I am not sure that it works for terminator.PROMPT_COMMAND='echo -en "\033]0; $("pwd") \a"'
– sudodus Jan 04 '17 at 20:02