LoginSignup
20
20

More than 5 years have passed since last update.

tmux 1.9でもウィンドウ作成時にパスを引き継ぐ

Posted at

tmuxを1.9aにアップデートしたら、ウィンドウを作成したり分割したときにパスを引き継がなくなってしまった。ChangeLogを見てみると、default pathというものを廃止したとのことだった。元の挙動に戻すための設定も書いてあったので、.tmux.confを以下のように修正した。

.tmux.conf
bind-key    c     new-window -c "#{pane_current_path}"
bind-key    v     split-window -h -c "#{pane_current_path}"
bind-key    C-v   split-window -h -c "#{pane_current_path}"
bind-key    s     split-window -v -c "#{pane_current_path}"
bind-key    C-s   split-window -v -c "#{pane_current_path}"

new-windowsplit-windowのオプションに-c "#{pane_current_path}"を付けてあげるとパスを引き継ぐようになった。

20
20
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
20