Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 364
Xprog Avatar asked Mar 17 '11 18:03

Xprog


People also ask

How do I change the terminal tab name in Ubuntu?

Go to Menu: Terminal --> Set Title --> Enter new title then save.

How do you open a new tab in Terminator?

For instance, gnome-terminal --tab --tab --tab will get you a new window with three tabs. Assign the command to a keyboard shortcut to achieve what your goal. To open a new tab interactively use Ctrl + Shift + T .


1 Answers

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.

like image 75
Bolster Avatar answered Oct 12 '22 06:10

Bolster