-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
45 lines (40 loc) · 1.55 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
set -g prefix C-Space
set -g mouse on
set -g set-titles on
set -g set-titles-string "#T"
set -g default-terminal "screen-256color"
# set -g destroy-unattached on
set -g status-bg blue
set -g status-fg white
set -g pane-active-border-style fg=blue
set -g pane-border-style fg=white
set -g status-right ""
set -g status-left ""
set -g escape-time 0
set -g window-status-format " #I:#W "
set -g window-status-current-format " #I:#W "
set -g window-status-current-style "bg=white,fg=black"
set -g window-status-activity-style "bg=brightred,fg=white,bold"
set -g window-status-bell-style "bg=brightred,fg=white,bold"
set -g mode-style "bg=blue,fg=white,bold"
set -g message-style "bg=black,fg=white"
bind -nr M-Enter new-window -a
bind -nr M-h previous-window
bind -nr M-l next-window
bind -nr M-w kill-pane
bind -nr M-b split-window -h
bind -nr M-v split-window -v
bind -nr M-o select-pane -t :.+
unbind C-b
# Emulate scrolling by sending up and down keys if these commands are running in the pane
tmux_commands_with_legacy_scroll="nano less more man git"
bind-key -T root WheelUpPane \
if-shell -Ft= '#{?mouse_any_flag,1,#{pane_in_mode}}' \
'send -Mt=' \
'if-shell -t= "#{?alternate_on,true,false} || echo \"#{tmux_commands_with_legacy_scroll}\" | grep -q \"#{pane_current_command}\"" \
"send -t= C-u" "copy-mode -et="'
bind-key -T root WheelDownPane \
if-shell -Ft = '#{?pane_in_mode,1,#{mouse_any_flag}}' \
'send -Mt=' \
'if-shell -t= "#{?alternate_on,true,false} || echo \"#{tmux_commands_with_legacy_scroll}\" | grep -q \"#{pane_current_command}\"" \
"send -t= C-d" "send -Mt="'