-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
93 lines (59 loc) · 1.98 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
#setting prefix from C-b to C-a.
#If you are mapping caps to control key, you will stay in home row comfortably
# set -g prefix C-a
# unbind C-b
# Set the base index for window and banes as 1
set -g base-index 1
setw -g pane-base-index 1
# set the delay between tmux and actual app
set -s escape-time 1
# Bind reloading source file to a shourtcut
bind r source-file ~/.tmux.conf
# send the prefix to the actual application
bind C-b send-prefix
#splitting window into panes using | and -
bind | split-window -h
bind - split-window -v
#Travelling to panes with prefix h,j,k,l
bind h select-pane -L
bind l select-pane -R
bind j select-pane -D
bind k select-pane -U
# Quick window selection using H and L
# -r is to repeat the keys
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Quich window resizing
bind -r H resize-pane -L 5
bind -r L resize-pane -R 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
# Enable mouse
set -g mouse on
# set -g mouse off
#set default terminal mode to 256 colors
set -g default-terminal "screen-256color"
# set the status line's colors
set -g status-style fg=white,bold,bg=black
set -g window-status-style fg=cyan,bg=black
set -g window-status-current-style fg=white,bold,bg=red
# Status line left side to show Session:window:pane
set -g status-left-length 40
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
# Status line right side
set -g status-right "#[fg=cyan]%d %b %R"
# colors for pane borders
setw -g pane-border-style fg=green,bg=black
setw -g pane-active-border-style fg=white,bg=yellow
#active panel will be normal others shaded out
setw -g window-style fg=color240,bg=color235
setw -g window-active-style fg=white,bg=black
#command / message line style
set -g message-style fg=white,bold,bg=black
#Refresh interval
set -g status-interval 15
#center the window list in the status line
set -g status-justify centre
#identify the activity in other window
setw -g monitor-activity on
setw -g visual-activity on