-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
68 lines (52 loc) · 1.9 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
# Change prefix key to Ctrl+s
unbind C-b
set -g prefix C-s
#set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m'
#set -s default-terminal "screen-256color"
set-option -g default-shell /bin/zsh
set -g default-terminal "tmux-256color"
set -sa terminal-overrides ',alacritty:RGB'
set -ga terminal-overrides ',alacritty:Tc'
set -ga terminal-overrides ",*256col*:Tc"
# tmux-airline
# This is generated by a vim plugin so it may not exist initially
if-shell "test -f ~/dotfiles/tmux-lightline.conf" "source ~/dotfiles/tmux-lightline.conf"
# Copy mode
unbind [
bind Escape copy-mode
# Use Vi mode
setw -g mode-keys vi
#set -g status-keys vi
# Mouse settings
set -g mouse on
# More straight forward key bindings for splitting
bind v split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Misc bindings
bind-key r source-file ~/.tmux.conf\; display-message " ✱ ~/.tmux.conf is reloaded"
# Copy Paste
# move x clipboard into tmux paste buffer
#bind C-p run "xclip -o | tmux load-buffer - ; tmux paste-buffer"
# Don't rename window titles
set-option -g allow-rename off
set-window-option -g automatic-rename off
# Helps with faster command sequences
set -s escape-time 0
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-sessionist'
set -g @copycat_search_C-e '.*(\[Err\])|(error).*'
set -g @copycat_search_C-w '.*(\[Wrn\])|(warn).*'
set -g @resurrect-save 'T'
set -g @resurrect-restore 'R'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
# To install, do prefix+I
run '~/.tmux/plugins/tpm/tpm'
# Keep this after initializing plugins because tmux-pain-control conflicts with this
bind C-l last-window
bind C-u clear-history