-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
51 lines (40 loc) · 1.4 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
set -g default-terminal "screen-256color"
set -g mouse on
set -g history-limit 5000
# map tmux-leader to C-a
set -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
# copy-paste
setw -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# binds
unbind r
bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced!'
bind C-l send-keys C-l \; run 'sleep 0.1' \; clear-history
# theme separator line
setw -g pane-active-border-style fg=#3daee9
# --- Status Bar ---
set -g status on
set -g status-style bg=default
set -g status-left '#S > '
set -g status-left-length 40
set -g window-status-format '#W'
set -g window-status-style 'fg=colour250,dim'
set -g window-status-current-format '#W'
set -g window-status-current-style fg=white
set -g window-status-separator ' '
set -g status-right ''
# --- Navigation ---
bind C-c new-window -a
bind \\ split-window -h
bind - split-window -v
# --- TMUX plugin manager ---
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'christoomey/vim-tmux-navigator'
# keep at the end of the file
run -b '~/.tmux/plugins/tpm/tpm'