Re:Getting started with Tmux
by 3PS on Sunday September 16, 2018 @06:20PM
(#18001544)
Ohhh, thank you! One of my biggest annoyances so far was exactly this - every time I split off a new pane, I'd have to cd back to wherever I was working.
[ Parent
| on HN ]
If you want the directory to come from your current pane instead of the current session, it's a little easier:
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
https://github.com/mfarrugi/.dots/blob/master/tmux/.tmux.con...This can be done too in MacOS by configuring iTerm2 to open a new pane in the same directory and using tmux integration. Cool part is you don't have to learn the tmux commands, but you can use the iTerm2 commands to split panes, among other things.
Edit: Added MacOs