-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
78 lines (59 loc) · 2.08 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
set-option -ga terminal-overrides ",xterm-256color:Tc"
set-window-option -g xterm-keys on
# Create panes
bind-key v split-window -h
bind-key s split-window -v
# Switch panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Switch between panes with Alt + n / m
bind-key -n M-n select-pane -L
bind-key -n M-m select-pane -U
bind-key J resize-pane -D 20
bind-key K resize-pane -U 20
bind-key H resize-pane -L 20
bind-key L resize-pane -R 20
# Alt = M (meta)
bind-key -n M-Right next-window
bind-key -n M-Left previous-window
bind-key -n M-l next-window
bind-key -n M-h previous-window
# Change session
bind-key S choose-session
set-option -g prefix C-a
bind-key C-a last-window
# Start numbering at 1
set -g base-index 1
# Allows for faster key repetition
set -sg escape-time 0
# Allows us to use C-a a <command> to send commands to a TMUX session inside
# another TMUX session
bind-key a send-prefix
# Define my custom menu bar
# status bar colors
set -g status-style bg=default
set -g status-fg white
# border colors
set -g pane-active-border-style bg=default,fg=colour236
set -g pane-border-style fg=colour238
# alignment settings
set-option -g status-justify left
# status left options
set -g status-left ''
set-option -g status-left-length 20
# window list options
set-option -g status-interval 5
set-option -g automatic-rename on
# Inactive
# Colors: https://github.com/guns/xterm-color-table.vim/blob/master/README.markdown
set-window-option -g window-status-format '#[fg=yellow,dim]#I #[fg=blue]#{pane_current_command} #[fg=cyan]#(echo "#{pane_current_path}" | rev | cut -d'/' -f-2 | rev) #[fg=dim]'
# Active
set-window-option -g window-status-current-format '#[fg=yellow,dim]#I #[fg=blue,bright]#{pane_current_command} #[fg=cyan]#(echo "#{pane_current_path}" | rev | cut -d'/' -f-2 | rev) #[fg=dim]'
set -g base-index 1
# status right options
set -g status-right '#[fg=grey]%d.%m.%Y #[fg=colour243]%H:%M #[fg=grey]#[default]'
# reload config without killing server
# ctrl+a -> shift + r
bind R source-file ~/.tmux.conf \; display-message " Config reloaded..".