Skip to content

Instantly share code, notes, and snippets.

@dimanyc
Created September 1, 2016 02:48
Show Gist options
  • Save dimanyc/e289a47413b9faa7ed9a8e11e6cfa77b to your computer and use it in GitHub Desktop.
Save dimanyc/e289a47413b9faa7ed9a8e11e6cfa77b to your computer and use it in GitHub Desktop.
set -g default-terminal "screen-256color"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
# Use vim keybindings in copy mode
setw -g mode-keys vi
bind [ copy-mode
unbind ]
bind ] paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
bind y run-shell "tmux show-buffer | xclip -sel clip -i" \; display-message "Copied tmux buffer to system clipboard"
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment