-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
58 lines (50 loc) · 1.68 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
### Prefix
unbind C-b
set -g prefix ^t
bind t send-prefix
### Key bind
# New window
unbind c
bind c new-window
# Next window
unbind " "
bind " " next-window
# Kill window
unbind-key &
bind k confirm-before "kill-window"
# Reload config
bind r source-file ~/.tmux.conf # \; display-message "Reload Config!!"
### Colors
set -g status-bg green
set -g status-fg black
### Option
# Key bind of copy mode. default is emacs.
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -sel clip > /dev/null"
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -sel clip > /dev/null"
# Prevent to change window name automatically
set-window-option -g allow-rename off
set-window-option -g automatic-rename off
# Notes and workarounds for accessing the Mac OS X pasteboard in tmux sessions
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
# set-option -g default-command "tmux rename-window bash; reattach-to-user-namespace -l bash"
#===================================
# tpm - Tmux Plugin Manager
#===================================
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
#===================================
# Auto start tmux and restore
#===================================
# auto start terminal
# set -g @continuum-boot 'on'
# set -g @continuum-boot-options 'iterm'
# auto restore tmux
set -g @continuum-restore 'on'
# Initialize TMUX plugin manager
# (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'