-
Notifications
You must be signed in to change notification settings - Fork 3
/
tmux.conf
100 lines (72 loc) · 2.17 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Set prefix Key
unbind-key C-b
set -g prefix C-a
# Prefix+a sends Prefix
# eg. C-a+a will send C-a (jump to start of line)
bind-key a send-prefix
# Swap on C-a C-a
bind-key C-a last-window
# Set Esc time to 0
set -sg escape-time 0
# Scrollback buffer size
set -g history-limit 5000
# Messages are displayed for 4 seconds
set -g display-time 4000
# Act like vi
setw -g mode-keys vi
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Window navigation
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# Pane resizing
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key H resize-pane -L 5
bind-key L resize-pane -R 5
# Split shortcuts
bind-key | split-window -h -c "#{pane_current_path}"
bind-key - split-window -v -c "#{pane_current_path}"
# 80/20 split (vertically)
bind-key C-t split-window -v -p 20 -c "#{pane_current_path}"
# 75/25 split (horizontally)
bind-key C-y split-window -h -p 25 -c "#{pane_current_path}"
# Clock model
set -g clock-mode-style 12
set -g clock-mode-colour green
# Reload config file
unbind-key r
bind-key r source-file ~/.tmux.conf
# Enable mouse support
set -g mouse on
# Enable clipboard
set -s set-clipboard on
# Create new windows on PWD
bind-key c new-window -c "#{pane_current_path}"
# Copy to clipboard
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -i -selection clipboard'
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -i -selection clipboard'
# Look good
set -g default-terminal "screen-256color"
# Start window index of 1 instead of 0
set -g base-index 1
# Start panes at 1 instead of 0. tmux 1.6 only
set -g pane-base-index 1
# Autorename
setw -g automatic-rename on
# Set the client terminal title
set -g set-titles on
# Statusbar refresh rate
set -g status-interval 5
set -g status-position bottom
set -g status-left-length 60
set -g status-right-length 150
set -g status-justify left
set -g status-bg black
set -g status-fg white
set -g status-left "#[fg=black,bg=green] #S "
set -g status-right " "
set -g window-status-format " #I:#W "
set -g window-status-current-format "#[fg=black,bg=white] #I:#W "