-
Notifications
You must be signed in to change notification settings - Fork 2
/
.tmux.conf
68 lines (52 loc) · 1.53 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
# set escape key
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
# start at 1
set -g base-index 1
# terminal and shell
set -g default-terminal "screen-256color"
set -g update-environment -r
# vimish copy mode
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
# vimish windows
unbind l
bind-key -r C-k select-pane -U
bind-key -r C-j select-pane -D
bind-key -r C-h select-pane -L
bind-key -r C-l select-pane -R
# vimish resizing
bind-key -r K resize-pane -U
bind-key -r J resize-pane -D
bind-key -r H resize-pane -L
bind-key -r L resize-pane -R
# window titles
set-option -g set-titles on
# default window title
set-window-option -g window-status-style bg=default,fg=$TMUX_WINDOW_STATUS_FG,dim
# active window title
set-window-option -g window-status-current-style fg=blue,bg=default,dim
# messages
set-option -g message-style fg=white,bg=black,bright
# status
set-option -g status-style bg=default
set-option -g status-justify centre
# left status
set-option -g status-left-length 60
set-option -g status-left "#[fg=$TMUX_WINDOW_STATUS_FG]#H:#S #[default]"
set-option -g status-right "#[fg=$TMUX_WINDOW_STATUS_FG]%d.%m.%Y #[fg=blue]%H:%M"
# pane border
set-option -g pane-border-style fg=$TMUX_BORDER
set-option -g pane-active-border-style fg=$TMUX_BORDER
# intuitive splitting
unbind %
bind | split-window -h
bind - split-window -v
# force reload
unbind r
bind r source-file ~/.tmux.conf
# rotation
unbind C-o
bind R rotate-window