Skip to content

Instantly share code, notes, and snippets.

@yuvalif
Last active March 20, 2018 09:40
Show Gist options
  • Save yuvalif/db62cba2f2734661f6f40a4200f492a9 to your computer and use it in GitHub Desktop.
Save yuvalif/db62cba2f2734661f6f40a4200f492a9 to your computer and use it in GitHub Desktop.
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# kill window without asking with C-a d
bind-key d kill-window
unbind &
# kill pane without asking
bind-key x kill-pane
# switch panes using Alt-arrow without prefix
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
# switch windows using C-arrow without prefix
bind -n C-Right next-window
bind -n C-Left previous-window
# enable mouse mode (tmux 2.1 and above)
set -g mouse on
# don't rename windows automatically
set-option -g allow-rename off
# start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# highlight current window
set-window-option -g window-status-current-bg yellow
# activity window
setw -g monitor-activity on
setw -g window-status-activity-fg red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment