Skip to content

Instantly share code, notes, and snippets.

@ChiftKey
Forked from william8th/.tmux.conf
Created May 10, 2021 02:00
Show Gist options
  • Save ChiftKey/f8ff3d50ef2505bc32eda7bbe62e5e47 to your computer and use it in GitHub Desktop.
Save ChiftKey/f8ff3d50ef2505bc32eda7bbe62e5e47 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