-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
81 lines (67 loc) · 2.05 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
74
75
76
77
78
79
80
81
# basic settings
#--------------------
set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",*256col*:Tc"
set -g status-interval 10
set -g status-right "[#{=14:host}] %F %a %R"
set -g repeat-time 300
set -g display-time 5000
set -g history-limit 50000
set -g focus-events on
set -g mouse on
setw -g mode-keys vi
set -s escape-time 0
# key settings
#--------------------
# prefix key
set -g prefix C-t
bind z send-prefix
# reload tmunx.conf
bind R source-file ~/.tmux.conf
# window creation
bind c new-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
# window focus
bind C-l last-window
bind -r C-n next-window
bind -r C-p previous-window
bind T swap-window -t 0 # swap with Top
# pane focus
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
# pane size
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
# copy mode settings
#--------------------
# Setup copy mode as vi
bind -T copy-mode-vi v send-keys -X begin-selection
# Use copy-pipe
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
# visual settings
#--------------------
# set-option -g status-justify centre
# plugins
#--------------------
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'seebi/tmux-colors-solarized'
# tmux-resurrect
set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-processes 'irb pry "~rails server" "~rails console"'
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-strategy-nvim 'session'
# tmux-continuum
set -g @continuum-restore 'on'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'