Skip to content

Instantly share code, notes, and snippets.

@FA5I
Forked from william8th/.tmux.conf
Created November 18, 2022 23:25
Show Gist options
  • Save FA5I/b8e05d68b5bb09dbe1d9dcee6c0cea8b to your computer and use it in GitHub Desktop.
Save FA5I/b8e05d68b5bb09dbe1d9dcee6c0cea8b 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