Skip to content

Instantly share code, notes, and snippets.

@koutoftimer
Forked from william8th/.tmux.conf
Created January 5, 2023 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koutoftimer/8b11811f8db3c4b42fea49642b341100 to your computer and use it in GitHub Desktop.
Save koutoftimer/8b11811f8db3c4b42fea49642b341100 to your computer and use it in GitHub Desktop.
Tmux open new pane in same directory
# 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}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment