aboutsummaryrefslogtreecommitdiff
path: root/tmux/tmux.conf
blob: a0fe55e96169e0cee181ede7dccb0e61bb2576d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Set the prefix to C-A.
unbind C-b
set -g prefix C-a
bind a send-prefix

# GNU Screen rebindings.
unbind '"'
unbind A
unbind C-A
unbind C-C
unbind C-D
unbind C-L
unbind C-N
unbind C-P
unbind Tab
unbind k
unbind K
unbind n
unbind p
unbind s
unbind S
bind '"' choose-window
bind A command-prompt "rename-window %%"
bind C-A last-window
bind C-C new-window
bind C-D detach
bind C-L refresh-client
bind C-N next-window
bind C-P previous-window
bind Tab select-pane -t :.+
bind \ confirm-before "kill-server"
bind c new-window
bind k confirm-before "kill-window"
bind K confirm-before "kill-window"
bind n next-window
bind p previous-window
bind s split-window -v
bind S split-window -h

# Terminal settings.
set -g default-terminal "screen-256color"

# Start window numbering at 1, not 0.
set -g base-index 1

# Don't worry about escape sequences.
set -s escape-time 0

# Spiffy colours.
set -g status-fg colour248
set -g status-bg colour237
set -g pane-border-bg colour237
set -g pane-border-fg colour237
set -g pane-active-border-bg colour237
set -g pane-active-border-fg colour237

# Use two-space separators, and forget the status indicator.
set-window-option -g window-status-format "#[fg=colour16]#I #W "
set-window-option -g window-status-current-format "#[fg=colour231]#I #W "

# Set status bar text to the left and right.
set -g status-left '[#S]'
set -g status-right '[#H] #(date +"%F %T")'