-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
69 lines (55 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
# Set a Ctrl-b shortcut for reloading your tmux config
# bind r source-file ~/.tmux.conf
# Rename your terminals
set -g set-titles on
set -g set-titles-string '#(whoami)::#h::#(curl ipecho.net/plain;echo)'
# Status bar customization
set -g status-utf8 on # you need comment it if using newest tmux
set -g status-bg black
set -g status-fg white
set -g status-interval 5
set -g status-left-length 90
set -g status-right-length 60
set -g status-justify left
set -g status-right '#[fg=Cyan]#S #[fg=white]%a %d %b %R'
unbind C-b
# Set prefix
set -g prefix C-a
bind r source-file ~/.tmux.conf \; display "Reload .tmux.conf"
# Use ctrl-a in other process
bind C-a send-prefix
# Set move key
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Move cyclely
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Set pane adjust key
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
set -g default-terminal "screen-256color"
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-border-fg white
set -g pane-active-border-bg yellow
# set maximum cache lines
set -g history-limit 5000
# set vi mode when edit view
setw -g mode-keys vi
# move x clipboard into tmux paste buffer
#bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
# # move tmux copy buffer into x clipboard
#bind C-y run "tmux show-buffer | xclip -i"
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @resurrect-save-bash-history 'on'
set -g @resurrect-capture-pane-contents 'on'
set -g @resurrent-strategy-vim 'session'
set -g @yank_selection 'primary'
run '~/.tmux/plugins/tpm/tpm'