Skip to content

Instantly share code, notes, and snippets.

@tjdett
Created September 21, 2012 03:38
Show Gist options
  • Save tjdett/3759592 to your computer and use it in GitHub Desktop.
Save tjdett/3759592 to your computer and use it in GitHub Desktop.
My tmux config
# Mouse
setw -g mode-mouse on
set-option -g mouse-resize-pane on
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-option -g mouse-utf8 on
# Titles
set-option -g set-titles on
set-option -g set-titles-string '#S:#I.#P #W'
set-window-option -g automatic-rename on
# A hundred thousand lines of history
set-option -g history-limit 100000
# Use prefix key before...
# Copy tmux paste buffer to CLIPBOARD
bind C-c run "tmux show-buffer | xclip -i -selection clipboard"
## Copy CLIPBOARD to tmux paste buffer and paste tmux paste buffer
bind C-v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
# Allow pass through of prefix key
bind-key b send-prefix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment