Skip to content

Instantly share code, notes, and snippets.

@qkboo
Created October 22, 2017 03:14
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 qkboo/9915a6f76cd9b7e4986965e8f5e95f2e to your computer and use it in GitHub Desktop.
Save qkboo/9915a6f76cd9b7e4986965e8f5e95f2e to your computer and use it in GitHub Desktop.
Favorite .tmux.conf for Tmux Plugins and binding Ctrl to CapsLock
# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
# Enabling mouse - but sometimes very annoying
# Toggle mouse on with META m
bind m \
set-option -g mouse on \;\
display 'Mouse: ON'
# Toggle mouse off with ^B M
bind M \
set-option -g mouse off \;\
display 'Mouse: OFF'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment