-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_tmux.conf.tmpl
51 lines (38 loc) · 1.29 KB
/
dot_tmux.conf.tmpl
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
# Enable true colour
set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",*256col*:Tc"
# Mouse settings
set -g mouse on
# Start a new session if there isn't one already
new-session
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
setw -g mode-keys vi
setw -g monitor-activity on
set-window-option -g xterm-keys on
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# ctrl-k for clear pane
bind -n C-k clear-history
# No delay for escape key press
set -sg escape-time 0
# Reload tmux config
bind r source-file ~/.tmux.conf
# Open new windows and panes in the current directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Enable focus events
set -g focus-events on
# enter copy mode more easily
bind -n C-Space copy-mode
# Make text selection and copy behave like Vim
bind P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
source-file ~/.dotfiles/tmux/theme.conf
# Install plugins (keep this line at the very bottom of tmux.conf)
source-file ~/.dotfiles/tmux/plugins.conf