-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
86 lines (74 loc) · 2.74 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
# escape command like for screen is `
set-option -g prefix `
unbind-key C-b
bind-key C-a last-window
bind-key j next-window
bind-key k previous-window
bind-key n new-window
bind-key u swap-pane -U
bind-key h select-pane -L
bind-key l select-pane -R
bind-key J select-pane -D
bind-key K select-pane -U
bind-key v split-window -h
bind-key f split-window -v
bind-key r command-prompt "rename-window %1"
bind-key x command-prompt "kill-session -t :%1"
# bind-key R source-file ~/.tmux.conf; display-message " * ~/.tmux.conf is reloaded"
bind-key T refresh-client
bind-key q confirm-before kill-session
bind-key Q confirm-before kill-server
bind-key < swap-window -t :-
bind-key > swap-window -t :+
# Start numbering at 1
set -g base-index 1
# Allows for faster key repetition
set -s escape-time 0
# Set status bar
set -g status-bg default
set -g status-fg white
set -g status-left-length 20
set -g status-right-length 40
set -g status-left "#[bg=colour214]#[fg=colour232] [#h #I] "
set -g status-right "#[bg=colour33]#[fg=colour255]#[fg=colour232] #[fg=colour255]#(uptime | awk {'print $8, $9, $10'})#[fg=colour232] #[bg=colour232] #[bg=colour33] #[fg=colour255]#(date '+%H:%M %d-%m-%Y')#[fg=colour232] "
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
setw -g mode-mouse on
set -g default-terminal "screen-256color"
# 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
# Allows us to use C-a a <command> to send commands to a TMUX session inside
# another TMUX session
bind-key a send-prefix
# Activity monitoring
#setw -g monitor-activity on
#set -g visual-activity on
# Highlight active window
set-window-option -g window-status-current-bg red
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
set-window-option -g window-status-current-format '#[bg=colour33]#[fg=colour255] #I #W '
# set copy mode to vi
set-window-option -g mode-keys vi
# set scroll back history limit
set-option -g history-limit 10000
# messages
set-option -g message-fg default
set-option -g message-bg default
set-option -g display-time 1500
## set status bar
set-option -g status-utf8 on
set-option -g status-interval 1
set-option -g status-right-length 100
set-option -g status-left-length 120
## set window notifications
set-option -g visual-activity on
set-option -g visual-content on
set-window-option -g monitor-activity off
set-window-option -g automatic-rename off
## tmux window titling for X
set-option -g set-titles on
set-option -g set-titles-string '[#I] #W'
set-window-option -g window-status-format ' #I #W '
set-window-option -g window-status-attr bold