-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtmux.conf
88 lines (69 loc) · 2.27 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
# Set prefix.
set -g prefix C-a
bind C-a send-prefix
# Speed up escape key to speed up vim.
set -sg escape-time 0
set -g set-titles on
set -g set-titles-string "#{pane_current_command}: #{b:pane_current_path}"
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set -g history-limit 50000
# Enable mouse support.
set -g mouse on
set -g focus-events on
# Enable true color.
set -ga terminal-overrides ",xterm-256color:RGB:XT"
set -g default-terminal "tmux-256color"
# Enable cursor changes.
set -ga terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
# Start window numbers from 1.
set -g base-index 1
# Renumber windows after change.
set -g renumber-windows on
# Reload source file.
bind r source-file ~/.tmux.conf
# Custom keybindings.
bind x kill-session
bind \\ split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind m resize-pane -Z
bind C-m resize-pane -Z
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
bind -r C-j select-pane -D
bind -r C-k select-pane -U
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r H resize-pane -L 5
bind -r L resize-pane -R 5
bind C-n new-window -c "#{pane_current_path}"
bind -r C-[ copy-mode
# Use vi keys.
setw -g mode-keys vi
bind -T copy-mode-vi Escape send cancel
unbind p
bind p paste-buffer
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
# Theme.
set -g status-style bg=default
set -g status-justify 'left'
set -g status-left-length '100'
set -g status 'on'
set -g status-right-length '100'
set -g status-interval 1
set -g status-left ' '
set -g message-style "fg=#faf4ed,bg=#eb6f92,bold"
set -g pane-border-style "fg=#575279"
set -g pane-active-border-style "fg=#575279"
setw -g pane-border-format '─'
setw -g pane-border-status bottom
setw -g status-right ' '
setw -g window-status-separator ' '
setw -g window-status-style "fg=#9893a5"
setw -g window-status-format '#{b:pane_current_path}[#{pane_current_command}]'
setw -g window-status-current-format '#[fg=#9ccfd8,bold]#{?window_zoomed_flag,(,}#{b:pane_current_path}#[fg=#f6c177,none,italics][#{pane_current_command}]#{?window_zoomed_flag,),}'
setw -g window-status-activity-style "fg=#fffaf3"