0

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.

1 Answers1

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

askubuntu.com/questions/636944/how-to-change-the-title-of-the-current-terminal-tab-using-only-the-command-line

and if it works you can modify the Exec line in the corresponding desktop file.

sudodus
  • 47,684