Skip to content

Instantly share code, notes, and snippets.

@juchiast
Created May 26, 2017 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juchiast/e33f33a3d16d072fedf5b091f1406d7c to your computer and use it in GitHub Desktop.
Save juchiast/e33f33a3d16d072fedf5b091f1406d7c to your computer and use it in GitHub Desktop.
My tmux configuration
# unbind all key
unbind -a
# start new session without login shell
set -g default-command bash
# allows faster key repetition
set -s escape-time 0
# copy-paste
set-window-option -g mode-keys vi
#send-keys -Tcopy-mode-vi 'v' send -X begin-selection
#send-keys -Tcopy-mode-vi 'y' send -X copy-selection
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
bind p paste-buffer
# set prefix key to Alt+f
set -g prefix M-f
bind M-f send-prefix
# pane keys
bind -r v split-window -h
bind -r b split-window
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r Up select-pane -U
bind -r Down select-pane -D
bind -r Left select-pane -L
bind -r Right select-pane -R
bind -r M-h resize-pane -L
bind -r M-j resize-pane -D
bind -r M-k resize-pane -U
bind -r M-l resize-pane -R
# window keys
bind t new-window
bind ] next-window
bind [ previous-window
bind : command-prompt
bind r source-file ~/.tmux.conf
bind c copy-mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment