所以我正在運行終結者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