]> git.phdru.name Git - dotfiles.git/blob - .tmux.conf
.profile, .shellrc: test $BASH_VERSION instead of $SHELL
[dotfiles.git] / .tmux.conf
1 # Start window numbers at 1 to match keyboard order with tmux window order
2 set-option -g base-index 1
3 set-option -g pane-base-index 1
4 # Renumber windows sequentially after closing any of them
5 set-option -g renumber-windows on
6
7 # Pass [Ctrl]+[PgUp/PgDn]
8 set-window-option -g xterm-keys on
9
10 # Mouse
11 set-window-option -g mode-mouse on
12 set-option -g mouse-select-pane on
13 set-option -g mouse-resize-pane on
14 # Mouse can be used to select windows (by clicking in the status bar)
15 set-option -g mouse-select-window on
16
17 # Rather than constraining window size to the maximum size of any client
18 # connected to the *session*, constrain window size to the maximum size of any
19 # client connected to *that window*. Much more reasonable.
20 set-window-option -g aggressive-resize on
21
22 # Activity monitoring
23 set-option -g visual-activity on
24 set-window-option -g monitor-activity on
25
26 # Clock color
27 set-window-option -g clock-mode-colour black
28
29 # Attempt to set the client terminal title
30 set-option -g set-titles on
31 # Terminal emulator window title
32 set-option -g set-titles-string 'tmux #S.#I.#P #T' # session, window number, pane number, title
33
34 set-option -g message-bg black
35 set-option -g message-fg white
36
37 # Soften status bar color from black on harsh green to black on cyan
38 set-option -g status-bg cyan
39 set-option -g status-fg black
40
41 set-option -g pane-active-border-bg default
42 set-option -g pane-active-border-fg green
43 set-option -g pane-border-bg default
44 set-option -g pane-border-fg white
45
46 set-window-option -g mode-bg black
47
48 set-window-option -g window-status-bg cyan
49 set-window-option -g window-status-current-attr default
50 set-window-option -g window-status-current-fg blue
51 set-window-option -g window-status-bell-attr default
52 set-window-option -g window-status-bell-fg red
53 set-window-option -g window-status-content-attr default
54 set-window-option -g window-status-content-fg yellow
55 set-window-option -g window-status-activity-attr default
56 set-window-option -g window-status-activity-fg yellow
57
58 set-option -g status-left '[#S.#I.#P]'
59
60 # set-option -g status-interval 5
61 # set-option -g status-right '%H:%M'
62 set-option -g status-right ''
63
64 # Increase scrollback lines
65 set-option -g history-limit 1000
66
67 # <prefix> R to reload config without restart
68 bind-key R source-file ~/.tmux.conf \; display "Reloaded!"
69
70 # Set the command prefix to match GNU screen (CTRL+a)
71 # set-option -g prefix C-a
72 #
73 # Use C-a C-a key to send prefix instead of the default
74 # unbind-key C-b
75 # bind-key C-a send-prefix
76 #
77 # <prefix> C-a for last-window
78 # bind-key C-a last-window
79
80 # Use vertical and horizontal chars to split the screen
81 bind-key | split-window -h
82 bind-key - split-window -v