Skip to content

Instantly share code, notes, and snippets.

@cabrinha
Created March 20, 2015 22:01
Show Gist options
  • Save cabrinha/73de259e39db7e9392e8 to your computer and use it in GitHub Desktop.
Save cabrinha/73de259e39db7e9392e8 to your computer and use it in GitHub Desktop.
Will's tmux.conf
unbind C-b
set -g prefix C-a
bind-key C-b send-prefix
bind-key C-a last-window
set-option -g history-limit 999999
set-option -g aggressive-resize on
bind-key C-t select-layout tiled
bind-key C-s set sync
bind m \
set -g mouse-resize-pane \;\
set -g mouse-select-pane \;\
set -g mouse-select-window \;\
set -g mode-mouse on \;\
display 'Mouse mode '
bind M \
set -g mouse-resize-pane off \;\
set -g mouse-select-pane off \;\
set -g mouse-select-window off \;\
set -g mode-mouse off \;\
display 'Mouse: OFF'
set -g status-left ""
set -g default-terminal "screen-256color"
# 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 "tmux save-buffer - | xclip -i -selection clipboard"
bind C-y run-shell -b "tmux save-buffer - | xclip -i -selection clipboard; tmux display-message \"Tmux buffer saved to clipboard\" "
# pane movement
bind-key j command-prompt -p "join pane from:" "join-pane -h -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -h -t '%%'"
# set active window background colors
set-window-option -g window-status-current-attr bold
set-window-option -g window-status-current-bg black
set-window-option -g window-status-current-fg green
# set window titles to auto change, and set to running command
# (unless otherwise set by external scripts)
set -g set-titles on
set -g set-titles-string "#W"
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
# don't have to wait to scroll back once you've changed panes
set -g repeat-time 0
# aggressively rename windows
set -g automatic-rename on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment