Skip to content

Instantly share code, notes, and snippets.

@mattlenz
Last active January 12, 2018 03:07
Show Gist options
  • Save mattlenz/71a00d468e1046be70762a63e79951e9 to your computer and use it in GitHub Desktop.
Save mattlenz/71a00d468e1046be70762a63e79951e9 to your computer and use it in GitHub Desktop.
tmux config
# mouse
set -g mouse on
# vi mode
set-window-option -g mode-keys vi
# remap C-b to C-a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# split windows with | and -
unbind '"'
unbind %
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# open new window with current path
unbind c
bind c new-window -c "#{pane_current_path}"
# r to reload config
unbind r
bind r source-file ~/.tmux.conf
# switch panes with Alt-arrow
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment