-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
executable file
·73 lines (59 loc) · 1.77 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
#---------------#
# Plugins #
#---------------#
# NOTE: Don't forget run 'prefix + I` to install plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-yank'
#---------------#
# Options #
#---------------#
# Systems
set-option -g default-shell /usr/bin/zsh
set-option -g default-command /usr/bin/zsh
set-option -g default-terminal 'screen-256color'
set-option -g history-limit 10000
#set-window-option -g utf8 on
set-option -g escape-time 10
set-option -g set-clipboard on
set-option -g renumber-windows on
# Styles
set-option -g status-justify 'left'
set-option -g status-bg colour64
set-option -g status-fg white
set-option -g status-right "#(tmux-mem-cpu-load --interval 3 -q)"
set-option -g status-right-length 300
set-window-option -g window-status-current-style bg=black,fg=white
set-window-option -g window-status-style fg=white
#---------------#
# KeyBind #
#---------------#
bind-key C-t send-prefix
unbind-key C-b
set-option -g prefix C-t
set-option -g status-keys emacs
set-window-option -g mode-keys vi
# Set vim like window operator
unbind-key l
bind-key -r h select-pane -L
bind-key -r j select-pane -D
bind-key -r k select-pane -U
bind-key -r l select-pane -R
# Change horizon split key
unbind-key '"'
bind-key s split-window -v
# Change virtical split key
unbind-key %
bind-key v split-window -h
# Yank Keys
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi _ send-keys -X back-to-indentation
# Others
bind-key * choose-session
# Set reload configure
bind-key r source-file ~/.tmux.conf \; display-message ">> .tmux.conf reloaded"
#---------------#
# Scripts #
#---------------#
run ~/.tmux/plugins/tmux-yank/yank.tmux
run ~/.tmux/plugins/tpm/tpm