-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
69 lines (55 loc) · 1.73 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
# general
set -g history-limit 16384
set-option -g base-index 1
set-window-option -g pane-base-index 1
set-window-option -g xterm-keys on
# shell setting
set-option -g default-shell /usr/bin/zsh
#set-option -g default-terminal screen-256color
#set -g terminal-overrides 'xterm-colors=256'
# border
set -g pane-border-lines simple
set -g pane-border-style fg=color4
set -g pane-active-border-style fg=color2
white='#abb2bf'
black='#282c34'
green='#98c379'
blue='#61afef'
# status bar
set-option -g status-fg $black
set-option -g status-bg $black
set-option -g status-interval 1
set-option -g status-justify centre
status_col="#{?client_prefix,$blue,$green}"
set-option -g status-left "#[bg=$status_col] ###S [#H] #[bg=$black, fg=$status_col]#[default]"
set-option -g status-left-length 40
set-option -g status-right "#[bg=$black,fg=$green]#[bg=$green,fg=$black] [%m/%d (%a) | %H:%M:%S] #[default]"
set-window-option -g window-status-format "#[fg=$white] #I: #W #[default]"
set-window-option -g window-status-current-format "#[bg=$green,bold] #I: #W #[default]"
# Key binds
unbind C-b
set -g prefix C-x
setw -g mode-keys vi
## focus
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
## resize
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
## split
bind s split-window -v -c '#{pane_current_path}'
bind v split-window -h -c '#{pane_current_path}'
unbind C-z
unbind q
bind q kill-window
bind C-h select-layout even-horizontal
bind C-v select-layout even-vertical
## yank
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi V send -X select-line
bind -T copy-mode-vi C-v send -X rectangle-toggle
bind -T copy-mode-vi y send -X copy-selection