-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
53 lines (40 loc) · 2.02 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
###############################################################################
# Config
###############################################################################
# Status bar
set -g status-bg colour0
set-option -g status-fg white
set-option -g status-right ""
set-window-option -g window-status-current-format "#[bg=colour15] #[fg=colour1]#I #[fg=colour0]#{window_panes} #W "
set-window-option -g window-status-format " #[fg=colour1]#I #[fg=colour15]#{window_panes} #W "
set-window-option -g window-status-separator ""
# Panes
set-option -g pane-border-format " #{pane_current_command} "
set-option -g pane-border-status bottom
set-option -g pane-active-border-style fg=colour1
set-option -g pane-border-style fg=colour15
###############################################################################
# Keybinds prefix
###############################################################################
bind-key -r -T prefix j select-pane -L
bind-key -r -T prefix \; select-pane -R
###############################################################################
# Keybinds copy-mode-vi
###############################################################################
# Cursor
bind-key -T copy-mode-vi j send-keys -X cursor-left
bind-key -T copy-mode-vi J send-keys -X previous-word
bind-key -T copy-mode-vi \; send-keys -X cursor-right
bind-key -T copy-mode-vi \: send-keys -X next-word
bind-key -T copy-mode-vi k send-keys -X cursor-down
bind-key -T copy-mode-vi l send-keys -X cursor-up
bind-key -T copy-mode-vi s send-keys -X start-of-line
bind-key -T copy-mode-vi d send-keys -X end-of-line
bind-key -T copy-mode-vi \' send-keys -X page-down
bind-key -T copy-mode-vi \[ send-keys -X page-up
# Search
bind-key -T copy-mode-vi w command-prompt -p "(search down)" "send -X search-forward \"%%%\""
bind-key -T copy-mode-vi W command-prompt -p "(search up)" "send -X search-backward \"%%%\""
# Copy
bind-key -T copy-mode-vi u send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
bind-key -T copy-mode-vi p send-keys -X clear-selection