Skip to content

Instantly share code, notes, and snippets.

@jorgemb
Last active December 10, 2018 22:19
Show Gist options
  • Save jorgemb/52be4b6f1a94003f95fc25550e7b9547 to your computer and use it in GitHub Desktop.
Save jorgemb/52be4b6f1a94003f95fc25550e7b9547 to your computer and use it in GitHub Desktop.
TMux configuration 1.0
set -g default-terminal "screen-256color"
unbind-key C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set -g history-limit 10000
setw -g xterm-keys on
setw -g automatic-rename off
set -g set-titles on
# Detach client
bind-key d detach
bind-key C-d detach
# Navigate panes
bind-key -r j select-pane -t :.-
bind-key -r k select-pane -t :.+
bind-key -r C-j select-pane -t :.-
bind-key -r C-k select-pane -t :.+
# Navigate windows
bind-key -r h select-window -t :-
bind-key -r l select-window -t :+
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# Vi for copy mode
setw -g mode-keys vi
# bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
# bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment