-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.tmux.conf
More file actions
30 lines (26 loc) · 1.15 KB
/
Copy path.tmux.conf
File metadata and controls
30 lines (26 loc) · 1.15 KB
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
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Restoring pane contents
set -g @resurrect-capture-pane-contents 'on'
# User defined
set -sg escape-time 1
set -g mouse on
setw -g mode-keys vi
set -g default-terminal "xterm-256color"
set -g status-bg "#454545"
set-option -g status-position bottom
setw -g window-status-format '#[fg=white,bright][#I]#W'
setw -g window-status-current-format '#[fg=white,bright]*[#I]#W'
set -g status-left '#[fg=yellow,bright]#S '
set -g status-right '#(gitmux -cfg $HOME/.gitmux.conf "#{pane_current_path}")'
set -g status-interval 2
set -s set-clipboard external
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -sel clipboard -i"
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -sel clipboard -i"
# Make mouse selection sticky
bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-no-clear pbcopy
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear pbcopy
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'