Hi. I’m trying to create a script that opens a new window with several tabs, and different commands launched in each tab. This is the same as this topic, but I’m trying to do it in a single command with `–tab-with-profile" option.
This is what my script looks like:
#!/bin/bash
gnome-terminal --geometry=170x25+100-100 \
--tab-with-profile=MyProfile --title="Command 1" --command="<my command 1>" \
--tab-with-profile=MyProfile --title="Command 2" --command="<my command 2>" \
--tab-with-profile=MyProfile --title="Command 3" --command="<my command 3>" &
This works, but it says that --command
option is deprecated, and that I should use --
to terminate terminal options and put the command after that. But this is possible only for one tab. How could I specify multiple commands, one for each tab?