我有几个终端的配置文件。我可以在启动时打开所有配置文件,但是它们会在启动应用程序中使用此cmd在不同的窗口中打开:
gnome-terminal --window-with-profile=ablack && gnome-terminal --window-with-profile=agreeen && gnome-terminal --window-with-profile=aubergine && gnome-terminal --window-with-profile=beige && gnome-terminal --window-with-profile=cyan && gnome-terminal --window-with-profile=grey && gnome-terminal --window-with-profile=orange && gnome-terminal --window-with-profile=white && gnome-terminal --window-with-profile=yellow && gnome-terminal --window-with-profile=ablack
我尝试使用此cmd打开一个带有多个选项卡的窗口,但未成功:
gnome-terminal --window-with-profile=ablack && gnome-terminal --tab-with-profile=agreeen && gnome-terminal --tab-with-profile=aubergine && gnome-terminal --tab-with-profile=beige && gnome-terminal --tab-with-profile=cyan && gnome-terminal --tab-with-profile=grey && gnome-terminal --tab-with-profile=orange && gnome-terminal --tab-with-profile=white && gnome-terminal --tab-with-profile=yellow && gnome-terminal --tab-with-profile=ablack
如何使其运作?
要打开一个gnome-terminal
很少有选项卡的窗口,我们应该使用option --tab
。请参阅gnome-terminal --help-all
。同样,man gnome-terminal
我们可以找到以下解释:
--window-with-profile=PROFILENAME
Open a new window containing a tab with the given profile.
More than one of these options can be provided.
--tab-with-profile=PROFILENAME
Open a tab in the window with the given profile.
More than one of these options can be provided, to open several tabs.
因此,要打开gnome-terminal
带有很少选项卡的窗口,我们应该使用以下命令:
gnome-terminal --tab-with-profile=ProfileA --tab-with-profile=ProfileB --tab-with-profile=ProfileC
编写自己的命令并将其测试到终端中。如果可以令人满意地将其添加为“启动应用程序”中的条目:
有几种可能的方法如何打开gnome-terminal
每个窗口中每个选项卡都很少的窗口。我建议使用如下命令:
gnome-terminal --tab-with-profile=ProfileA --tab-with-profile=ProfileB && gnome-terminal --tab-with-profile=ProfileC --tab-with-profile=ProfileD
另一个想法是为每个gnome-terminal
窗口创建单独的“启动应用程序”条目。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句