1 # Set the command prefix to match GNU screen (CTRL+a)
2 # set-option -g prefix C-a
4 # Use C-a C-a key to send prefix instead of the default
6 # bind-key C-a send-prefix
8 # <prefix> C-a for last-window
9 # bind-key C-a last-window
11 # Start window numbers at 1 to match keyboard order with tmux window order
12 set-option -g base-index 1
13 set-option -g pane-base-index 1
14 # Renumber windows sequentially after closing any of them
15 set-option -g renumber-windows on
17 # Pass [Ctrl]+[PgUp/PgDn]
18 set-window-option -g xterm-keys on
21 set-window-option -g mode-mouse on
22 set-option -g mouse-select-pane on
23 set-option -g mouse-resize-pane on
24 # Mouse can be used to select windows (by clicking in the status bar)
25 set-option -g mouse-select-window on
27 # Rather than constraining window size to the maximum size of any client
28 # connected to the *session*, constrain window size to the maximum size of any
29 # client connected to *that window*. Much more reasonable.
30 set-window-option -g aggressive-resize on
33 set-option -g visual-activity on
34 set-window-option -g monitor-activity on
37 set-window-option -g clock-mode-colour black
39 # Attempt to set the client terminal title
40 set-option -g set-titles on
41 # Terminal emulator window title
42 set-option -g set-titles-string 'tmux #S.#I.#P #T' # session, window number, pane number, title
44 set-option -g message-bg black
45 set-option -g message-fg white
47 # Soften status bar color from black on harsh green to black on cyan
48 set-option -g status-bg cyan
49 set-option -g status-fg black
51 set-option -g pane-active-border-bg default
52 set-option -g pane-active-border-fg green
53 set-option -g pane-border-bg default
54 set-option -g pane-border-fg white
56 set-window-option -g mode-bg black
58 set-window-option -g window-status-bg cyan
59 set-window-option -g window-status-current-attr default
60 set-window-option -g window-status-current-fg blue
61 set-window-option -g window-status-bell-attr default
62 set-window-option -g window-status-bell-fg red
63 set-window-option -g window-status-content-attr default
64 set-window-option -g window-status-content-fg yellow
65 set-window-option -g window-status-activity-attr default
66 set-window-option -g window-status-activity-fg yellow
68 set-option -g status-left '[#S.#I.#P]'
70 # set-option -g status-interval 5
71 # set-option -g status-right '%H:%M'
72 set-option -g status-right ''
74 # Increase scrollback lines
75 set-option -g history-limit 1000
77 # <prefix> R to reload config without restart
78 bind-key R source-file ~/.tmux.conf