如何使用tmuxinator缩放配置中的窗格


0

所以我想要的是使用tmuxinator启动一个tmux会话,并且vim窗格将被放大(prefex + z)但是如何在tmuxinator中指定它?

name: app
root: ~/work/app

windows:
  - rails:
    - cd server&&vim
    - guard

Answers:


0

如果你写的话,在某些窗格shell里面的tmux

tmux resize-pane -Z

这相当于'Prefix z',请记住,您可以通过shell配置tmux

所以你的tmuxinator项目成了

name: app
root: ~/work/app

windows:
  - rails:
    - tmux resize-pane -Z&&cd server&&vim
    - guard

这可行,但你可以通过遵循tmuxinator方法而不是使用'&&'来做得更好:

name: app
root: ~/work/app

windows:
  - rails:
    - server :
        - tmux resize-pane -Z
        - cd server
        - vim
    - guard

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.