Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 14:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
unbind C-b
set -g prefix C-t
bind-key t send-prefix
set-option -g history-limit 1000
# set -g @yank_selection "primary"
# # tmux plug-in manager
# set -g @tpm_plugins " \
# tmux-plugins/tpm \
# tmux-plugins/tmux-yank \
# "
setw -g mode-keys vi
# unbind [
# bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# Attempts to copy tmux buffer to OS clipboard
# bind -t vi-copy y copy-pipe "xclip"
# move x clipboard into tmux paste buffer
# bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
# move tmux copy buffer into x clipboard
bind C-y run-shell -b "tmux save-buffer - | xclip -selection c &>/dev/null; tmux display-message \"Tmux buffer saved to clipboard\" "
# bind C-y run "tmux save-buffer - | xclip -i"
bind-key l next-window
bind-key h previous-window
# shortcut to reload .tmux.conf
bind-key r source-file ~/.tmux.conf \; display-message "Configuration reloaded"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment