-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
76 lines (55 loc) · 2 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
set-option -g default-terminal "tmux-256color"
set-option -ga terminal-overrides ",tmux-256color:Tc"
set -g repeat-time 1000
set -g mode-keys vi
## name windows per directory basename
########################################### be sure to see note* below
set -g window-status-format '#I:#(pwd="#{pane_current_path}"; echo ${pwd####*/})#F'
set -g window-status-current-format '#I:#(pwd="#{pane_current_path}"; echo ${pwd####*/})#F'
## status bar
##########################################
set -g status-interval 60 # sets refresh of status bar
## set status bar colours
set -g status-style fg=brightwhite,bg=brightblack
## show if activity in another window
set -g monitor-activity on
set -g visual-activity on
## set status bar items
set -g status-justify centre
set -g status-left-length 40
set -g status-left "#[fg=colour46]Session: #S #[fg=colour11]#I #[fg=cyan]#P"
set -g status-right "#[fg=colour46]%d %b %R"
## set inactive windows
setw -g window-status-style fg=colour255,bg=brightblack,dim
## set active window red
setw -g window-status-current-style fg=brightwhite,bg=colour203
# set pane divider colours
set -g pane-border-style fg=colour46,bg=brightblack
set -g pane-active-border-style fg=white,bg=colour11
## set command line
set -g message-style fg=white,bg=black,bright
###########################################
# reduce key escape time
set -s escape-time 1
# increase scrollback buffer size
set-option -g history-limit 50000
# start window numbering from 1 not 0
set -g base-index 1
set -g pane-base-index 1
# key bindings
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind | split-window -h
bind - split-window -v
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# bind-key -t vi-copy -n S-PPage halfpage-up
# bind-key -t vi-copy -n S-NPage halfpage-down
# setw is set-window-option shortened