-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
30 lines (22 loc) · 947 Bytes
/
.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
# Changes Ctrl-b to Ctrl-a
set-option -g prefix C-a
# Set shell to bash:
set-option -g default-shell "/bin/bash"
# Add tmux-plugins
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
# Sort out the colour scheme
set -g default-terminal 'xterm-256color'
# Set to Vi mode
set-window-option -g mode-keys vi
# Allow mouse abilities
set -g mouse on
# Add pbcopy to tmux copy-mode-vi so text is also placed in clipboard
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# Enable standard vim keys for copy-and-paste (v and y)
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# Initialize tmux plugin manager (keep this line at the bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'