-
-
Save TitouanT/1539f6ef37d052141abeb6a8e5349232 to your computer and use it in GitHub Desktop.
Tmux open new pane in same directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# \ and - to split to the session working directory (SWD) | |
bind \\ split-window -h | |
bind - split-window -v | |
# hold shift to split to current path | |
bind | split-window -h -c "#{pane_current_path}" | |
bind _ split-window -v -c "#{pane_current_path}" | |
# change SWD to current pane path | |
bind W attach-session -t . -c "#{pane_current_path}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment