Skip to content

Instantly share code, notes, and snippets.

@SeanHeelan
Created April 23, 2026 09:59
Show Gist options
  • Select an option

  • Save SeanHeelan/7376f25714c2cc8cb2c9aa202d1e3e3d to your computer and use it in GitHub Desktop.

Select an option

Save SeanHeelan/7376f25714c2cc8cb2c9aa202d1e3e3d to your computer and use it in GitHub Desktop.
tmux.conf
# Set prefix to Ctrl-a
unbind C-b
set -g prefix C-a
# Use shift-arrow keys without prefix key to switch panes
bind -n S-Left select-pane -L
bind -n S-Right select-pane -R
bind -n S-Up select-pane -U
bind -n S-Down select-pane -D
# Create windows and panes in the current directory
bind c new-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
# Increase history limit
set-option -g history-limit 5000
# Disable automatic window renameing
setw -g automatic-rename off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment