- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如何在 tmuxinator 中指定 Pane 百分比?
例如:
project_name: ad_dev
project_root: ~/Programming/WWW/Rails/projects/ApparelDreamDev
rvm: ruby-1.9.2-p290@apparel_dev
pre: SQL
tabs:
- editor:
layout: main-vertical
panes:
- vim 75%
- #empty, will just run plain bash
- top
例如:vim Pane 将占据屏幕的 75%...有没有办法指定这一点?或者我应该查看文档中的哪里?好像到处都找不到。
最佳答案
布局应在 layout:
行中指定。但您并不限于五种预设布局(例如 main-vertical)。来自 man page :
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。然后您应该能够使用 tmuxinator.conf 中未更改的输出中的 layout:
行
因此,根据您要点的输出:
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
关于tmux - 在 tmuxinator 项目中指定 Pane 百分比,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9812000/
我正在使用 Tmuxinator,我想知道是否可以使用多个命令来初始化 Tmux Pane ? 示例 panes: - vim - workon project
我是 tmuxinator 的新手,如果这是一个幼稚的问题,请原谅我。 我有一个 tmuxinator 配置文件(例如 my_config.yaml )存储在共享项目的源树中。 对于其他人使用它,AF
我正在将示例代码复制到我的 .yml 文件中,但我无法让我的 Pane 运行任何代码: # Will create panes, but will not open vim or echo windo
我已经配置了 Tmuxinator 项目 我想一直在我的服务器上运行。让我烦恼的是我没有设法将它发送到 自动启动 (意外)重新启动后。这是我到目前为止所尝试的: 编辑 /etc/rc.local 所以
在tmuxinator配置文件中,您可以指定应在单个shell中运行多个命令,例如: windows: - logs: - cd ~/project/log - tail -f d
如何在 tmuxinator 中的每个 Pane 上设置唯一标题 session ? 我正在尝试运行多个 Pane 以显示来自 htop 的输出正在运行ssh到不同的服务器。我的配置看起来像: pro
如何在 tmuxinator 中指定 Pane 百分比? 例如: project_name: ad_dev project_root: ~/Programming/WWW/Rails/projec
我是 tmux + tmuxinator 的 super 粉丝。最近购买时,我发现自己正在使用不同的 session ,尽管我使用 tmuxinator 配置了它们,但我仍然需要每天一次打开一个 se
我想在 iTerm2 中打开所有有用的内容: 不是这样的: 我正在使用 tmuxinator 我定义了一些选项卡。我想知道是否有可能获得以前的行为。 最佳答案 我刚刚尝试过 tmux 1.8。并不完全
我是 tmux 用户和 tmuxinator 的粉丝因为它让我可以轻松地回到基线 tmux session 设置。 但是,我发现我的设置会定期更改,手动编辑我的 tmuxinator 设置会变得乏味。
目前我的 tmuxinator yml 文件中有这个, windows: - editor: layout: main-horizontal panes:
我是一名优秀的程序员,十分优秀!