Skip to content

Instantly share code, notes, and snippets.

@carlosvillademor
Last active June 9, 2020 11:12
Show Gist options
  • Select an option

  • Save carlosvillademor/4fde3ddb7b3c2506a90ceaff8adf50dc to your computer and use it in GitHub Desktop.

Select an option

Save carlosvillademor/4fde3ddb7b3c2506a90ceaff8adf50dc to your computer and use it in GitHub Desktop.
Tmux configuration file
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'
# 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
bind -n C-x setw synchronize-panes
set -g mouse on
set -g @continuum-restore 'on'
# reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Install TMUX pluing manager and plugins
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment