Skip to content

Instantly share code, notes, and snippets.

@jcarouth
Created December 9, 2013 18:49
Show Gist options
  • Save jcarouth/7878303 to your computer and use it in GitHub Desktop.
Save jcarouth/7878303 to your computer and use it in GitHub Desktop.
unbind C-b
unbind C-a
unbind %
unbind ,
unbind .
unbind n
unbind p
unbind [
unbind '"'
unbind 1
unbind &
unbind "'"
set-option -g prefix C-a
set-option -g default-command "reattach-to-user-namespace -l bash"
set -sg escape-time 0
set -g default-terminal "screen-256color"
bind-key Y run-shell "tmux save-buffer - | reattach-to-user-namespace pbcopy"
bind-key j select-pane -D
bind-key k select-pane -U
bind-key h select-pane -L
bind-key l select-pane -R
bind-key C-a last-pane
bind-key | split-window -h
bind-key \ split-window -h
bind-key - split-window -v
bind-key x kill-pane
bind-key X kill-window
bind-key q confirm-before kill-session
bind-key Q confirm-before kill-server
bind-key , previous-window # <
bind-key . next-window # >
bind-key < swap-window -t :-
bind-key > swap-window -t :+
bind-key n command-prompt 'rename-window %%'
bind-key N command-prompt 'rename-session %%'
bind-key R refresh-client
bind-key C-h resize-pane -L 5
bind-key C-l resize-pane -R 5
bind-key C-j resize-pane -D 5
bind-key C-k resize-pane -U 5
bind-key Escape copy-mode -u
bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
set-option -g visual-activity on
set-option -g visual-content on
set-window-option -g automatic-rename off
set-option -g set-titles on
set-option -g set-titles-string '[#I] #W'
set-window-option -g automatic-rename on
set-window-option -g window-status-format ' #I #W '
set-window-option -g window-status-attr bold
set-option -g base-index 1
set-option -g mouse-select-pane on
set-window-option -g mode-keys vi
set-window-option -g mode-mouse on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment