-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_tmux.conf
68 lines (52 loc) · 1.9 KB
/
dot_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
# escape timeout in neovim
set -sg escape-time 0
# Setting up colors
# https://gist.github.com/ziimir/e5599c003b1431500117126d7b095368
set -g default-terminal 'screen-256color'
set -as terminal-overrides ',alacritty*:Tc'
# Reload tmux config so we can pick up changes to this file without needing to restart tmux
bind r source-file ~/.tmux.conf \; display "Reloaded tmux configuration!"
# Use vi-style navigation in Copy mode (which is also scrollback mode)
setw -g mode-keys vi
# Setting up status line messages are displaing
set -g display-time 3000
# Navigate panes vim-style!
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# New panes in same directory
bind '%' split-window -h -c '#{pane_current_path}' # Split panes horizontal
bind '"' split-window -v -c '#{pane_current_path}' # Split panes vertically
# New windows in same directory
bind C new-window -c "#{pane_current_path}"
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Resizing panes
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# And windows too!
bind -r C-l select-window -t :+
bind -r C-h select-window -t :-
# Status bar
set -g status-right '%a %d.%m.%Y [%H:%M]'
set -g status-position top
set -g status-left-length 100
set -g status-interval 15
# Windows highlighting in status line
setw -g window-status-format "#I:#W"
setw -g window-status-style fg=black,bg=green
setw -g window-status-last-style fg=black,bg=green
setw -g window-status-bell-style fg=black,bg=green
setw -g window-status-activity-style fg=black,bg=green
setw -g window-status-current-style fg=green,bg=black
setw -g window-status-current-format "#I:#W"
# Monitor windows for activity
setw -g monitor-activity on
set -g visual-activity on
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
run '~/.tmux/plugins/tpm/tpm'