/
.tmux.conf
87 lines (68 loc) · 2.05 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
# set window title
set -g set-titles on
set -g set-titles-string "tmux #T #W"
# C-b is not acceptable -- Vim uses it
#set-option -g prefix C-b
bind-key C-b last-window
#reload config
bind-key R source-file ~/.tmux.conf \; display-message "config reloaded"
# Allows us to use C-b b <command> to send commands to a TMUX session inside
# another TMUX session
bind-key b send-prefix
# Allows for faster key repetition
set -s escape-time 0
# Enable mouse by default
set -g mouse on
# Toggle mouse on with ^B m
bind m \
set -g mouse on \;\
display 'Mouse: ON'
# Toggle mouse off with ^B M
bind M \
set -g mouse off \;\
display 'Mouse: OFF'
# Start numbering at 1
set -g base-index 1
# messages
set -g display-time 4000
set -g message-bg black
set -g message-fg white
set -g message-attr bold
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left ""
set -g status-right "#[fg=blue,bold]#H"
#
# Highlight active window
setw -g window-status-current-fg yellow
setw -g window-status-current-attr bold
# activity highlighting
setw -g window-status-activity-fg white
setw -g window-status-activity-bg black
setw -g window-status-activity-attr bold
# 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
# Activity monitoring
#setw -g monitor-activity on
#set -g visual-activity on
# Example of using a shell command in the status line
#set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)"
# shift+arrow for split
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# alt+page up/down for windows
bind -n M-PPage previous-window
bind -n M-NPage next-window
# alt+arrow for windows
bind -n C-Left previous-window
bind -n C-Right next-window
# Set window notifications
setw -g monitor-activity on
# move windows around
bind-key -n C-S-Left swap-window -t -1
bind-key -n C-S-Right swap-window -t +1