14
7
I have already studied this some time ago, but did not find any solution that would open terminal tabs, run some commands and then allow me to continue using those terminal tabs. All the ways I found launching terminal tabs from command line would only launch the tabs and not allow me to continue using them after that.
The problem I am trying to solve is that every time I need to boot my machine (or virtual machine in this case) I need to setup around six different terminal tabs to point to different folders and to export some environment variables on some of them.
I have experimented with xfce terminal and I have gotten some way with command like this:
terminal --disable-server -H --tab --title=1st_tab --tab --title=2nd_tab
But if I add command argument, the tab is not usable anymore when it opens:
terminal --disable-server -H --tab --title=1st_tab --tab --title=2nd_tab --command="cd ~/folder1"
http://docs.xfce.org/apps/terminal/command-line
I am currently using Red Hat Linux with gnome 2.28.2.
After I enter my commands in
Custom command
box, and hit close, it is not saved when re-opened. May I know why? I'm using Ubuntu 16 Desktop – Nam G VU – 2016-09-27T07:02:58.687@NamGVU hmm, I just tested and I have the same problem. Looks like a bug in the current version of terminator (this worked 3 years ago when this answer was posted). It still works if you edit the
~/.config/terminator/config
file as shown in step 5. – terdon – 2016-09-27T07:13:06.643