1 set-option -g mode-keys vi
2 set-option -g base-index 1
3 set-option -g default-terminal "screen-256color"
4 set-option -g escape-time 1
5 set-option -g repeat-time 0
6 set-option -g history-limit 20000
7 set-option -g renumber-windows on
9 set-option -g prefix C-a
11 bind-key C-a send-prefix
13 bind-key -n C-PgUp previous-window
14 bind-key -n C-PgDn next-window
15 bind-key -n S-PgUp copy-mode -u
16 bind '"' split-window -c "#{pane_current_path}"
17 bind % split-window -h -c "#{pane_current_path}"
18 bind c new-window -c "#{pane_current_path}"
20 set-option -g status-style "bg=black,fg=white"
21 set-option -g status-left "#S>"
22 set-option -g status-right "#T"
23 set-option -g status-justify centre
25 set-window-option -g automatic-rename on
26 set-window-option -g window-status-format "#I:#W:#T#F"
27 set-window-option -g window-status-bg green
28 set-window-option -g window-status-fg black
29 set-window-option -g window-status-current-format "#I:#W#F"
30 set-window-option -g window-status-current-bg red
31 set-window-option -g window-status-last-bg cyan
33 bind-key u capture-pane -J \; save-buffer /tmp/tmux-buffer \; split-window 'urlview /tmp/tmux-buffer' \; delete-buffer
34 bind-key y capture-pane -J \; save-buffer /tmp/tmux-buffer \; split-window 'vim /tmp/tmux-buffer' \; delete-buffer
35 bind-key Y capture-pane -J -S - -E - \; save-buffer /tmp/tmux-buffer \; split-window 'vim /tmp/tmux-buffer' \; delete-buffer
36 bind-key b set-option status