Last active
April 21, 2025 15:44
-
Star
(231)
You must be signed in to star a gist -
Fork
(11)
You must be signed in to fork a gist
-
-
Save william8th/faf23d311fc842be698a1d80737d9631 to your computer and use it in GitHub Desktop.
Tmux open new pane in same directory
This file contains hidden or 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
# Set the control character to Ctrl+Spacebar (instead of Ctrl+B) | |
set -g prefix C-space | |
unbind-key C-b | |
bind-key C-space send-prefix | |
# Set new panes to open in current directory | |
bind c new-window -c "#{pane_current_path}" | |
bind '"' split-window -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" |
Indeed a time saver :D
Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this!