5 ms·
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.
by 3PS 8y ago
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.
- kmundnic 8y agoThis 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
- wocram 8y agoIf 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.conf#L24-L25 https://github.com/mfarrugi/.dots/blob/master/tmux/.tmux.con...