I have a Terminal window with a dozen named tabs open.
I would like to save the current configuration and have it restored with names and directories.
Is there a way to do this?
command lineconfigurationgnome-terminaltabs
I have a Terminal window with a dozen named tabs open.
I would like to save the current configuration and have it restored with names and directories.
Is there a way to do this?
Best Answer
To save configuration into
/tmp/cfg
:To load it back:
UPDATE
After playing around with bash I created following script which stores tab names into file
/tmp/test
as well:To assign names properly you have to run it from first tab of your terminal. Loading same as before:
EXPLANATION:
I can use following to get tab name:
I can use following to jump to next tab:
I'm getting number of tabs after grepping configuration file I saved before:
So I can iterate over tabs inside a loop. I have to add "Title=titlename" entry for each tab configuration section in file saved before. To do so, first I'm creating an array of line numbers where I'll be adding lines.
I'm adding "Title=titlename" line inside of loop iterating over tabs: