-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
61 lines (51 loc) · 1.55 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
set -g history-limit 10000
set -g prefix C-a
# improve colors
set -g default-terminal 'screen-256color'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# act like vim
setw -g mode-keys vi
# free original prefix keybinding
unbind C-b
# re-bind to avoid conflict
bind C-a send-prefix
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# bindings for copy mode
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-selection-and-cancel
# Resize the panes with prefix+arrow keys
bind Up resize-pane -U 5
bind Down resize-pane -D 5
bind Left resize-pane -L 5
bind Right resize-pane -R 5
# use the system clipboard
set-option -g set-clipboard on
# integrate macOS clipboard
#bind -T copy-mode-vi y send -X copy-pipe-and-cancel "pbcopy"
bind ] copy-mode
bind [ run-shell "tmux set-buffer \"$(pbpaste)\"; tmux paste-buffer"
# split panes using | and -
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %
# VISUALS
# ----------------------------------
# statusbar
set -g status-style bg='#3d706e',fg='#ebe8e6'
set -g status-position bottom
set -g status-justify left
set -g status-right '%Y-%m-%d %H:%M '
set -g status-right-length 50
set -g status-left-length 10
# panes
set -g pane-border-style 'fg=colour12'
set -g pane-active-border-style 'fg=colour227'
# ----------------------------------
bind r source-file ~/.tmux.conf
run-shell ~/clone/path/resurrect.tmux