forked from peikk0/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
74 lines (56 loc) · 1.92 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
# Vi keys
set-option -g status-keys vi
# Status bar
set-option -g status-style bg=colour0,fg=colour15,
set-option -g status-left '[#h:#S]'
set-option -g status-left-length 20
set-option -g status-left-style fg=colour3
set-option -g status-right '| #T '
set-option -g status-right-length 50
set-option -g status-right-style fg=colour3
set-window-option -g window-status-format " #[fg=colour8]#I:#[fg=colour15]#W#[fg=colour8]#F#{?pane_synchronized,S,} "
set-window-option -g window-status-current-format " #[fg=colour11]#I:#[fg=colour2]#W#[fg=colour11]#F#{?pane_synchronized,S,} "
set-window-option -g window-status-current-style bg=colour0,fg=colour2,none
# Lock after 30 minutes
# set-option -g lock-after-time 1800
# Bell in all windows
set-option -g bell-action any
# History size
set-option -g history-limit 5000
# 256 colors
set-option -g default-terminal "screen-256color"
# Allow window renaming
set-option -g allow-rename on
# Automatic renaming
set-window-option -g automatic-rename on
# Update term title
set-option -g terminal-overrides "xterm*:XT,rxvt*:XT"
set-option -g set-titles on
set-option -g set-titles-string "tmux: #T"
# Vi mode
set-window-option -g mode-keys vi
# C-a like GNU screen
set-option -g prefix C-a
unbind-key C-b
bind-key a send-prefix
# Additionnal binding for new window, next window, etc.
bind-key '"' split-window -c "#{pane_current_path}"
bind-key % split-window -h -c "#{pane_current_path}"
bind-key c new-window -c "#{pane_current_path}"
bind-key C-c new-window -c "#{pane_current_path}"
bind-key C-n next-window
bind-key C-p previous-window
bind-key C-a last-window
# Panes synchronization bindings
bind-key = set-window-option synchronize-panes
# Binding for lock
bind-key l lock
bind-key C-l lock
# Binding for toggle status
bind-key b set-option status
# Binding for man
bind-key / command-prompt "split-window 'exec man %%'"
# Lock when detaching
bind-key D detach \; lock
# Unbind clock
unbind-key t