-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
74 lines (55 loc) · 2.37 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
# Version-specific commands
# See: https://github.com/tmux/tmux/blob/master/CHANGES
run-shell 'tmux setenv -g TMUX_VERSION $(tmux -V | \
sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")'
unbind-key -a
set -g prefix C-a
set -sg escape-time 0
set -g default-terminal "screen-256color"
# Scrollback buffer (number of lines held in window history)
set -g history-limit 50000
# Mouse
set -g mouse on
bind-key -T root MouseDown1Pane select-pane -t = \; send-keys -M
bind-key -T root MouseDown1Status select-window -t =
bind-key -T root MouseDown3Pane if-shell -F -t = "#{mouse_any_flag}" "select-pane -t=; send-keys -M" "select-pane -mt="
bind-key -T root MouseDrag1Pane if-shell -F -t = "#{mouse_any_flag}" "if -Ft= \"#{pane_in_mode}\" \"copy-mode -M\" \"send-keys -M\"" "copy-mode -M"
bind-key -T root MouseDrag1Border resize-pane -M
bind-key -T root WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= \"#{pane_in_mode}\" \"send-keys -M\" \"copy-mode -et=\""
bind-key -T root WheelUpStatus previous-window
bind-key -T root WheelDownStatus next-window
# Reload configuration
bind-key r confirm-before -p 'Reload configuration? (y/n)' "source ~/.tmux.conf; display-message 'Configuration reloaded.'"
bind-key : command-prompt
bind-key ? list-keys
bind-key \{ swap-pane -U
bind-key \} swap-pane -D
bind-key d detach-client
bind-key Space next-layout
# Windows
set -g allow-rename off
bind-key -n C-N new-window
bind-key -n C-Right next-window
bind-key -n C-Left previous-window
bind-key Enter command-prompt "rename-window '%%'"
# Appearance
set -g pane-active-border-style "fg=cyan"
set -g status-style "fg=black bg=white"
set -g window-status-current-style "bg=black fg=white"
if-shell -b '[ "$(bc <<< "$TMUX_VERSION >= 2.9")" = 1 ]' \
"set -g window-status-current-style bg=terminal,fg=terminal"
set -g window-status-format " [#I] #W "
set -g window-status-current-format " [#I] #W "
set -g window-status-separator ""
set -g message-command-style "bg=cyan fg=white"
set -g message-style "bg=cyan fg=black"
# Window splitting
bind-key -n -r M-/ split-window -h
bind-key -n -r M-- split-window -v
# Configure status bar
set -g status-left '#[bg=cyan] #[fg=brightwhite,bold]#S#[fg=black]@#H '
set -g status-left-length 32
set -g status-right '%Y-%m-%d %I:%M%P '
set -g status-position top
set -g status-justify left
set -g status-interval 15