Skip to content

Instantly share code, notes, and snippets.

@AHewitt
Last active November 11, 2019 06:42
Show Gist options
  • Select an option

  • Save AHewitt/3be41025915f2cd051f8d8f5c33a09ef to your computer and use it in GitHub Desktop.

Select an option

Save AHewitt/3be41025915f2cd051f8d8f5c33a09ef to your computer and use it in GitHub Desktop.
# use vi bindings
setw -g mode-keys vi
# enable mouse mode
set -g mouse on
# scroll history
set -g history-limit 50000
# set first window to index 1 (not 0) to map more to the keyboard layout
set-option -g renumber-windows on
set -g base-index 1
setw -g pane-base-index 1
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# 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
# enable tmux-yank plugin for system clipboard copying
run-shell /root/tmux-yank/yank.tmux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment