Setting Title for Tabs in Terminator (Console Application) in Ubuntu

Xprog picture Xprog · Mar 17, 2011 · Viewed 22.4k times · Source

Is there way to set terminator (Version: 0.95ppa1) title of tabs to a different string via bash command-line (CLI)?

I plan to use this feature with AutoKey and I can open multiple machines at same time and set title to Name of the machine its connected to.

Answer

Bolster picture Bolster · Jan 13, 2012
ORIG=$PS1
TITLE="\e]2;\"This is just crazy enough to work\"\a"
PS1=${ORIG}${TITLE}

Resets title to

"This is just crazy enough to work"

This should apply to all xterm-style terminal emulators.