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
|
# Make shift+arrows, ctrl+arrows etc work in Vim.
set -g xterm-keys on
# See if this fixes slow ESC issues.
# http://unix.stackexchange.com/questions/23138/esc-key-causes-a-small-delay-in-terminal-due-to-its-alt-behavior
set -s escape-time 0
# Start numbering at 1
set -g base-index 1
set -g pane-base-index 1
# Set status bar
set -g status-position bottom
set -g status-justify left
set -g status-style fg=white,bg=black,bold
set -g status-left "#S "
set -g status-right '#[fg=white,bg=black,bold] %d/%m #[fg=white,bg=black,bold] %H:%M @#H'
# higlight the active window in the status bar
set-window-option -g window-status-current-style bg=black,fg=white
setw -g window-status-current-style fg=red,bg=white,bold
setw -g window-status-current-format ' #I#[fg=red]:#[fg=black]#W#[fg=black]#F '
setw -g window-status-style fg=white,bg=black,dim
setw -g window-status-format ' #I#[fg=cyan]:#[fg=white]#W#[fg=white]#F '
# Don't prompt to kill panes/windows.
bind-key x kill-pane
bind-key & kill-window
# Cycle panes.
bind b select-pane -t :.+
bind C-b select-pane -t :.+
# More intuitive split-window mappings.
bind "'" split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# Maximize pane, e.g. for copying.
bind-key z resize-pane -Z
# Use vim keybindings in copy mode
setw -g mode-keys vi
set -g set-titles on
set -g mouse on
# C-b is not acceptable -- Vim uses it
set-option -g prefix C-space
bind-key C-space last-window
# vim like navigation
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# The panes
#set -g pane-border-bg colour235
#set -g pane-border-fg colour238
#set -g pane-active-border-bg colour236
#set -g pane-active-border-fg colour51
# panes
#set -g pane-border-fg black
#set -g pane-active-border-fg brightred
# Activity monitoring
setw -g monitor-activity on
set -g visual-activity on
# Example of using a shell command in the status line
#set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)"
# set -g default-terminal "tmux-256color"
set-option -ga terminal-overrides ",xterm-256color:RGB"
#############
# plugins #
#############
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'laktak/extrakto'
set -g @sidebar-tree-command 'tree -C'
run -b '~/.config/tmux/plugins/tpm/tpm'
|