Skip to content

Instantly share code, notes, and snippets.

@elliotec
Created August 8, 2018 00:33
Show Gist options
  • Save elliotec/58a64ba3dacd2fc447e3a24ffc5c65ac to your computer and use it in GitHub Desktop.
Save elliotec/58a64ba3dacd2fc447e3a24ffc5c65ac to your computer and use it in GitHub Desktop.
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-sessionist'
set -g @plugin 'nhdaly/tmux-scroll-copy-mode'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g default-terminal "screen-256color"
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set -g default-shell $SHELL
# tmuxline setting
if-shell "test -f ~/Dropbox/dotfiles/.tmux/tmuxlinesnapshot" "source ~/Dropbox/dotfiles/.tmux/tmuxlinesnapshot"
# mouse
set -g -q mouse on
# reload config file (change file location to the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-selection
# Don't override window name
set-option -g allow-rename off
set-window-option -g visual-activity off
# Initialize 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