V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
sorashiro
V2EX  ›  tmux

Tmux 分屏后如何保留先前窗格的路径。

  •  
  •   sorashiro · Dec 9, 2015 · 9968 views
    This topic created in 3805 days ago, the information mentioned may be changed or developed.

    请问安装了 tmux 后,使用 <C-b %> 分割窗口后怎么能在新窗口保留分割前的路径呢?我是在 Iterm2 中使用的 Tmux.

    不使用 tmux 的话直接用 iterm2 的分屏是可以在新窗口显示先前的路径的。

    谢谢大家~

    2 replies    2015-12-10 10:35:39 +08:00
    liangqing
        1
    liangqing  
       Dec 10, 2015   ❤️ 1
    加入下面的配置
    bind '"' split-window -c "#{pane_current_path}"
    bind % split-window -h -c "#{pane_current_path}"
    bind c new-window -c "#{pane_current_path}"
    sorashiro
        2
    sorashiro  
    OP
       Dec 10, 2015
    @liangqing 谢谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3838 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 00:07 · PVG 08:07 · LAX 17:07 · JFK 20:07
    ♥ Do have faith in what you're doing.