name terminal/tabs
Is there a way to name a terminal window or even better give each tab a name. at the moment they just get the underlying process name : for example a tab running elasticsearch gets the name java
Solution 1:
You can use @bubu 's solution, or you can right click on the tab, select "Inspect Tab", and set the title from there.
Solution 2:
Well.
echo -n -e "\033]0;In soviet russia, the title bar sets you\007"
will set your title to "In soviet russia, the title bar sets you"
Solution 3:
If you do this frequently, you can make @bubu's answer a function in your bash_profile
, like so:
tab() {
echo -ne "\033]0;$*\007"
}
And then just call it followed by the tab name, e.g. tab Tab Title with Spaces!