Skip to content

Instantly share code, notes, and snippets.

@modulitos
Last active August 29, 2015 14:06
Show Gist options
  • Save modulitos/39f13832e60587856f4d to your computer and use it in GitHub Desktop.
Save modulitos/39f13832e60587856f4d to your computer and use it in GitHub Desktop.
tmux.conf
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