在启动/重启计算机时,如何打开一个(或多个)带有几个选项卡的gnome终端窗口,每个选项卡具有不同的配置文件?

Mamesaye

我有几个终端的配置文件。我可以在启动时打开所有配置文件,但是它们会在启动应用程序中使用此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   

如何使其运作?

pa4080

要打开一个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] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

Related 相关文章

热门标签

归档