Skip to content

Instantly share code, notes, and snippets.

@roydq
Created October 6, 2017 15:12
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 roydq/67742ffe8bfaf0df250dd6bb423fa110 to your computer and use it in GitHub Desktop.
Save roydq/67742ffe8bfaf0df250dd6bb423fa110 to your computer and use it in GitHub Desktop.
tmux
# Start with 1 not 0
set -g base-index 1
# Automatic window title
set-window-option -g automatic-rename on
set-option -g set-titles on
# Dunno
set -g status-keys vi
set -g history-limit 10000
# Monitor activity
setw -g monitor-activity on
# vi mode for buffer editing
setw -g mode-keys vi
# change prefix to control+a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Split with v and s
bind-key v split-window -h
bind-key s split-window -v
# Easy pane resizing
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key H resize-pane -L 5
bind-key L resize-pane -R 5
bind-key M-j resize-pane -D
bind-key M-k resize-pane -U
bind-key M-h resize-pane -L
bind-key M-l resize-pane -R
# Alt+arrow keys with no prefix to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Shift+arrow to switch windows with no prefix
bind -n S-Left previous-window
bind -n S-Right next-window
# r to reload tmux config
bind-key r source-file ~/.tmux.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment