-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
92 lines (76 loc) · 2.36 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
set -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:RGB"
# unsetting C-b and setting C-x to PREFIX
unbind C-b
set -g prefix C-x
bind C-x send-prefix
# general config
set -s escape-time 0
set -g base-index 1
set -g detach-on-destroy off
set -g renumber-windows on
set -g set-clipboard on
set -g status-interval 1
set -g history-limit 1000000
set -g window-size latest
setw -g aggressive-resize off
setw -g pane-base-index 1
setw -g automatic-rename on
# aliases
bind r source-file ~/.tmux.conf \; display "Reloading configs..."
# split pane
bind | split-window -h
bind - split-window -v
# cycling panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
bind-key x kill-pane
# mode vi
setw -g mode-keys vi
# copy/paste mode
bind Escape copy-mode
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-selection
unbind p
bind p paste-buffer
# mouse ON
setw -g mouse on
# customizing status bar
set -g status-justify centre
set -g status-position top
set -g status-left-length 200
set -g monitor-activity off
set -g visual-activity off
# tmux plugin manager
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# tmux plugins
set -g @plugin 'joshmedeski/tmux-nerd-font-window-name'
set -g @plugin 'joshmedeski/tmux-fzf-url'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin "janoamaral/tokyo-night-tmux"
set -g @plugin 'ofirgall/tmux-window-name'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @tmux_window_dir_programs "['nvim', 'vim', 'vi', 'git', 'irb', 'ruby', 'doppler']"
set -g @tmux_window_name_max_name_len "15"
set -g @tmux_window_name_shells "['bash', 'fish', 'sh', 'zsh']"
set -g @tokyo-night-tmux_window_id_style digital
set -g @tokyo-night-tmux_pane_id_style hsquare
set -g @tokyo-night-tmux_zoom_id_style dsquare
set -g @tokyo-night-tmux_show_datetime 0
set -g @tokyo-night-tmux_date_format DMY
set -g @tokyo-night-tmux_time_format 24H
set -g @continuum-restore 'on'
set -g @ressurrect-strategy-vim 'session'
set -g @ressurect-capture-pane-contents 'on'
run '~/.tmux/plugins/tpm/tpm'