Skip to content

Instantly share code, notes, and snippets.

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 positron96/f720c56d34fe91c67586e9dd1b35c537 to your computer and use it in GitHub Desktop.
Save positron96/f720c56d34fe91c67586e9dd1b35c537 to your computer and use it in GitHub Desktop.
my tmux config
## ~/.tmux.conf
# C-b is not acceptable
set-option -g prefix C-a
bind-key C-a last-window
# Start numbering at 1
set -g base-index 1
set -g mouse on
set-option -s set-clipboard off
# sane scrolling:
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'"
# Allows us to use C-a a <command> to send commands to a TMUX session inside
# another TMUX session
bind-key a send-prefix
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment