forked from necolas/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
61 lines (47 loc) · 1.47 KB
/
tmux.conf
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
# Rebind prefix key
unbind C-b
set -g prefix C-a
# Custom bindings
unbind %
bind i split-window -v
bind s split-window -h
bind h select-pane -L
bind l select-pane -R
bind j select-pane -D
bind k select-pane -U
bind-key C-a last-window
bind-key -r left resize-pane -L
bind-key -r right resize-pane -R
bind-key -r down resize-pane -D
bind-key -r up resize-pane -U
# Preserve colors
set -g default-terminal "xterm-256color"
# Longer scrollback buffer size
set-option -g history-limit 3000
# Enable mouse scrolling
setw -g mouse on
# Start numbering at 1
set -g base-index 1
# Allows for faster key repetition
set -s escape-time 0
# Disable wait after escape, so vim is usable
set-option -sg escape-time 0
# In copy mode, use vi bindings and make the mouse work
setw -g mode-keys vi
setw -g mouse on
# Ctrl-p/n for tmux command history -- the vi mode is more like shell vi mode
# than vi command mode
set-option -g status-keys emacs
# Set status bar
# set -g status-bg black
# set -g status-fg white
# set -g status-left ""
# set -g status-right "#[fg=green]#H"
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# Example of using a shell command in the status line
#set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)"
# Highlight active window
# set-window-option -g window-status-current-bg red