-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
67 lines (55 loc) · 1.71 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
# use ctrl+a
unbind C-b
set -g prefix C-q
set -g default-terminal "xterm-256color"
# Pane switch
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
# resize panes using PREFIX H, J, K, L
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# Notify if something happens inside window
setw -g monitor-activity on
set -g visual-activity on
set -g default-terminal "screen-256color"
set -g history-limit 100000
# Status
#set -g status-utf8 on
# set color for status bar
set-option -g status-bg red #base02
set-option -g status-fg white #yellow
#set-option -g status-attr dim
# set window list colors - red for active and cyan for inactive
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg colour236
set-window-option -g window-status-attr dim
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg blue
set-window-option -g window-status-current-attr bright
# Mouse activity
# set-window-option -g mode-mouse on
# set -g mouse-select-pane on
# set -g mouse-select-window on
# set -g mouse-utf8 on
# Run Script
bind D source-file ~/.tmuxscript
# More intuitive
unbind %
bind \ split-window -h
bind - split-window -v
# Last window
bind-key L last-window
# Allows for faster key repetition
set -s escape-time 0
# Windows
# Shift-Left/Right cycles thru windows (no prefix)
bind-key -n "S-Left" select-window -t :-
bind-key -n "S-Right" select-window -t :+
bind-key -nr "C-Left" select-window -t :-
bind-key -nr "C-Right" select-window -t :+
# if run as "tmux attach", create a session if one does not already exist
new-session -n $HOST