blob: b20e0e144151e45d4f0b2e36dd851240e41e6ce8 (
plain)
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
|
### general
set -g mouse on
# required so 0;10;1c doesn't appear when starting tmux
set -sg escape-time 50
# Fix colors and italic/bold (found with :checkhealth on nvim)
set -g default-terminal "tmux-256color"
set-option -a terminal-features 'xterm-256color:RGB'
### some configs
### from https://jdhao.github.io/2018/09/30/tmux_settings_for_vim_users/
# reload config
bind r source-file $XDG_CONFIG_HOME/tmux/tmux.conf \; display-message "reloaded tmux config"
# vim-like splits
bind s split-window -v
bind v split-window -h
# vim-like pane switching
bind ^ last-window
bind k select-pane -U
bind j select-pane -D
bind h select-pane -L
bind l select-pane -R
### tpm config from here onwards
# general
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# use tmux-sessionizer instead
# resurrect
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# powerline
set -g @plugin 'erikw/tmux-powerline'
### others
# https://github.com/jrmoulton/tmux-sessionizer
bind f display-popup -E "tms"
bind C-q run-shell "tms kill"
bind C-l display-popup -E "tms switch"
bind C-w display-popup -E "tms windows"
# cht.sh
bind i display-popup -E "cht.sh"
### initialize tpm (keep this line at the very bottom of tmux.conf)
run '/usr/share/tmux-plugin-manager/tpm'
|