布局应layout:
在行中指定。但是,您不限于五个预设布局(例如,主-垂直)。从手册页:
In addition, select-layout may be used to apply a previously used layout -
the list-windows command displays the layout of each window in a form
suitable for use with select-layout. For example:
$ tmux list-windows
0: ksh [159x48]
layout: bb62,159x48,0,0{79x48,0,0,79x48,80,0}
$ tmux select-layout bb62,159x48,0,0{79x48,0,0,79x48,80,0}
tmux automatically adjusts the size of the layout for the current window
size. Note that a layout cannot be applied to a window with more panes
than that from which the layout was originally defined.
首先根据自己的喜好设置布局-可以调整宽度,resize-pane
直到恰好适合您。然后运行tmux list-windows
。然后您应该能够使用layout:
tmuxinator.conf中未更改的输出行
因此,根据您的要旨输出:
0: tmux [208x73] [layout b147,208x73,0,0[208x62,0,0,208x10,0,63{104x10,0,63,103x10,105,63}]] (active)
tmuxinator conf文件的相关部分应为:
- editor:
layout: b147,208x73,0,0[208x62,0,0,208x10,0,63{104x10,0,63,103x10,105,63}]
panes:
- vim
- #empty, will just run plain bash
- top