-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
89 lines (67 loc) · 2.19 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
# Color (Solarized dark)
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-dark.conf
set -g default-terminal "tmux-256color"
# default statusbar colors
set-option -g status-style bg=black,fg=yellow #yellow
#set-option -g status-attr default
# delay for nvim and vim
set -sg escape-time 10
# default window title colors
set-window-option -g window-status-style bg=default,fg=brightblue,dim #base0
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-style fg=brightred,bg=default,bright
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-style fg=black #base02
set-option -g pane-active-border-style fg=brightgreen #base01
# message text
set-option -g message-style bg=black,fg=brightred #base02
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
# bell
set-window-option -g window-status-bell-style fg=black,bg=red #base02, red
############
#
# Config
#
############
# Statusline
set -g status-interval 1
set -g status-justify centre # center align window list
set -g status-left-length 20
set -g status-right-length 140
set -g status-left '#[fg=green]#H #[fg=black]• #[fg=green,bright]#(uname -r | cut -c 1-6)#[default]'
# Vim like movements
bind j select-pane -D
bind k select-pane -U
bind h select-pane -L
bind l select-pane -R
# splite window horizontal
bind | split-window -h
# splite window vertical
bind - split-window -v
# resize vim like commands
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r H resize-pane -L 5
bind -r L resize-pane -R 5
# colorize active pane
set -g pane-border-style fg=white
set -g pane-active-border-style fg=cyan,bg=cyan
# Vi copypaste mode
set-window-option -g mode-keys vi
# Start numbering at 1
set -g base-index 1
# C-b is not acceptable -- Vim uses it
set-option -g prefix C-a
bind-key C-a last-window
# auto window rename
set-window-option -g automatic-rename
# working with NeoVim and other editors
set-option -sg escape-time 300
# Terminal color
set-option -g default-terminal "tmux-256color"