Skip to content

Instantly share code, notes, and snippets.

@thierrymarianne
Created September 2, 2017 08:46
Show Gist options
  • Save thierrymarianne/70547f1169a52308925cf8d99162f8d3 to your computer and use it in GitHub Desktop.
Save thierrymarianne/70547f1169a52308925cf8d99162f8d3 to your computer and use it in GitHub Desktop.
## tmux 2.5 configuration
# ~/.tmux.conf
set-option -g default-shell /bin/zsh
setw -g mode-keys vi
setw -g aggressive-resize on
set-option -g mouse on
set-window-option -g xterm-keys on
bind [ copy-mode
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-selection
bind -T copy-mode-vi V send-keys -X rectangle-toggle
bind -T copy-mode-vi y send -X copy-pipe "xclip -i -sel p -f | xclip -i -sel c" \; display-message "copied to system clipboard"
bind ] paste-buffer
set -g @tpm_plugins " \
tmux-plugins/tpm \
tmux-plugins/tmux-resurrect \
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment