During my day-to-day work, I keep many terminal tabs. So to identify those, I set titlesTerminal Tab > Set Titlee.g.IRC, API Codebase, API Logs, Server1, etcWhat I want to do is do something in the tab based on the title of the tab.e.g. When I set API Codebase, It should go to my codebase and activate appropriate python virtual environmentWhen I set IRC, It should run irssiWhen I set Server1, It should run ssh command to connect to the serverand so on.How can this be done?
How to run a script when a title is set to a terminal tab?
gnome terminal