Initial
[dotfiles.git] / tmux / .tmux.conf
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 50
5 set-option -g repeat-time 0
6 set-option -g history-limit 20000
7
8 set-option -g prefix C-a
9 unbind-key C-b
10 bind-key C-a send-prefix
11
12 bind-key -n C-PgUp previous-window
13 bind-key -n C-PgDn next-window
14 bind-key -n S-PgUp copy-mode -u
15 bind '"' split-window -c "#{pane_current_path}"
16 bind % split-window -h -c "#{pane_current_path}"
17 bind c new-window -c "#{pane_current_path}"
18
19 set-option -g status-style "bg=black,fg=white"
20 set-option -g status-left "#S>"
21 set-option -g status-right "#T"
22 set-option -g status-justify centre
23
24 set-window-option -g automatic-rename on
25 set-window-option -g window-status-format "#I:#W:#T#F"
26 set-window-option -g window-status-bg green
27 set-window-option -g window-status-fg black
28 set-window-option -g window-status-current-format "#I:#W#F"
29 set-window-option -g window-status-current-bg red
30 set-window-option -g window-status-last-bg cyan
31
32 bind-key u capture-pane -J \; save-buffer /tmp/tmux-buffer \; split-window 'urlview /tmp/tmux-buffer' \; delete-buffer
33 bind-key y capture-pane -J \; save-buffer /tmp/tmux-buffer \; split-window 'vim /tmp/tmux-buffer' \; delete-buffer
34 bind-key b set-option status
35 unbind-key L