@ka2n

Technology and beer

tmuxで画面分割時に現在のディレクトリを開く

画面分割(と新規window)には初期ディレクトリを指定する-cオプションが用意されているので、各キーバインディング-cオプション付きにbindし直してやると実現できる。

bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"

source: unix.stackexchange.com