mam*_*aye 3 configuration command-line gnome-terminal tabs 16.04
我有几个终端配置文件。我可以在启动时打开所有配置文件,但它们在启动应用程序中使用此 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
Run Code Online (Sandbox Code Playgroud)
我试图用这个 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
Run Code Online (Sandbox Code Playgroud)
如何使它工作?
要打开一个gnome-terminal带有几个选项卡的窗口,我们应该使用选项--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.
Run Code Online (Sandbox Code Playgroud)
因此,要打开gnome-terminal带有几个选项卡的窗口,我们应该使用以下命令:
gnome-terminal --tab-with-profile=ProfileA --tab-with-profile=ProfileB --tab-with-profile=ProfileC
Run Code Online (Sandbox Code Playgroud)
编写您自己的命令并将其测试到终端中。如果它工作令人满意,请将其添加为启动应用程序中的条目:
几乎没有可能的方法来打开几个gnome-terminal窗口,每个窗口都有几个选项卡。我建议使用如下命令:
gnome-terminal --tab-with-profile=ProfileA --tab-with-profile=ProfileB && gnome-terminal --tab-with-profile=ProfileC --tab-with-profile=ProfileD
Run Code Online (Sandbox Code Playgroud)
另一个想法是为每个gnome-terminal窗口创建单独的启动应用程序条目。
| 归档时间: |
|
| 查看次数: |
3337 次 |
| 最近记录: |