forked from killtheliterate/dottmux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
95 lines (65 loc) · 2.64 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# act like GNU screen
unbind C-b
set -g prefix C-a
# ----------------------------------------------------------------------------
# nested tmux, obey me
bind-key a send-prefix
# act like vim
set-window-option -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r J resize-pane -D 5
bind-key -r K resize-pane -U 5
bind-key -r H resize-pane -L 5
bind-key -r L resize-pane -R 5
# a fucking mouse
set-option -g mouse on
# whack nvim colors - @see: DEADLINK
set -g terminal-overrides ",xterm-256color:Tc"
# cursor shape - @see: :help tui-cursor-shape
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
# ----------------------------------------------------------------------------
# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0
# increase scrollback buffer size
set -g history-limit 50000
# tmux messages are displayed for 4 seconds
set -g display-time 4000
# refresh 'status-left' and 'status-right' more often
set -g status-interval 5
# set only on macOS, where it's required
# set -g default-command "reattach-to-user-namespace -l $SHELL"
# upgrade $TERM
# @see: https://webschneider.org/post/italics-in-tmux
set -g default-terminal "tmux-256color"
# emacs key bindings in tmux command prompt (prefix + :) are better than
# vi keys, even for vim users
set -g status-keys emacs
# focus events enabled for terminals that support them
set -g focus-events on
# super useful when using "grouped sessions" and multi-monitor setup
setw -g aggressive-resize on
# @see: https://github.com/chriskempson/base16-shell#tmux-users
# set -g allow-passthrough 1
# Copy/Paste
# ----------------------------------------------------------------------------
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
bind-key -T copy-mode-vi Up send -X history-up
bind-key -T copy-mode-vi Down send -X history-down
if-shell 'test "$(uname -s)" = Darwin' 'source-file ~/.config/tmux/tmux-osx.conf' 'source-file ~/.config/tmux/tmux-nix.conf'
# Italics
# ----------------------------------------------------------------------------
# set -g default-terminal 'tmux-256color'
# set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m'
# PLUGINS with tpm
# ----------------------------------------------------------------------------
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.config/tmux/plugins/'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/catppuccin'
set -g @catppuccin_flavour "frappe"
run '~/.config/tmux/plugins/tpm/tpm'