所以我正在运行终结者0.98。我喜欢 Fish shell,但对于某些任务来说,使用 bash 会很方便(比如 virtualenvwrapper)。现在,当我启动终结者时,我会打开两个窗口。但我想要一份以 Fish 开头的,另一份以 bash 开头的。这可能吗?如果可能的话:如何?
我通过更改位于的配置文件来使用自定义布局启动终结者~/.config/terminator/config
。
在配置文件的布局部分我使用了这段代码。
[layouts]
[[default]]
[[[child0]]]
fullscreen = False
last_active_window = True
maximised = True
order = 0
parent = ""
size = 1280, 985
type = Window
[[[child1]]]
order = 0
parent = child0
position = 490
ratio = 0.5
type = VPaned
答案1
您需要将 a 添加command
到相关窗格。如果您的默认 shell 是bash
,则只需运行一个窗格fish
:
[layouts]
[[default]]
[[[child0]]]
fullscreen = False
last_active_window = True
maximised = True
order = 0
parent = ""
size = 1280, 985
type = Window
[[[child1]]]
order = 0
parent = child0
command = 'bash'
position = 490
ratio = 0.5
type = VPaned
[[[child1]]]
order = 0
parent = child0
position = 490
ratio = 0.5
type = VPaned