-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
67 lines (56 loc) · 2.49 KB
/
Copy path.tmux.conf
File metadata and controls
67 lines (56 loc) · 2.49 KB
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
# ~/.tmux.conf
# A small, beginner-friendly tmux configuration.
# Keep the default prefix: Ctrl-b.
# General usability
set-option -g mouse on
set-option -g history-limit 50000
set-option -g focus-events on
set-option -g set-clipboard on
set-option -s escape-time 0
# Keep pane numbering at 0. Window numbering remains tmux's default.
set-option -g pane-base-index 0
# Keep window names under your control.
set-window-option -g automatic-rename off
set-window-option -g allow-rename off
# Good colors for terminal applications such as Lumen.
set-option -g default-terminal "tmux-256color"
set-option -as terminal-features ",*:RGB"
# Open new windows and splits in the current pane's directory.
bind-key c new-window -c "#{pane_current_path}"
bind-key '"' split-window -v -c "#{pane_current_path}"
bind-key % split-window -h -c "#{pane_current_path}"
# Vim-style pane navigation. Use Ctrl-b first, then h/j/k/l.
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Vim-style pane resizing. Hold Ctrl-b and repeat H/J/K/L.
bind-key -r H resize-pane -L 5
bind-key -r J resize-pane -D 5
bind-key -r K resize-pane -U 5
bind-key -r L resize-pane -R 5
# Vim-style command prompts and copy mode.
set-option -g status-keys vi
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
# Focus colors: avoid white-on-green and make the active pane obvious.
set-option -g pane-border-style "fg=#4c566a"
set-option -g pane-active-border-style "fg=#88c0d0,bg=default"
set-window-option -g pane-border-status top
set-window-option -g pane-border-indicators off
set-window-option -g pane-border-format "#{?pane_active,#[fg=#88c0d0],#[fg=#d8dee9]} pane #{pane_index} #[default]"
set-window-option -g window-style "bg=#252a33"
set-window-option -g window-active-style "bg=terminal"
set-option -g status-style "bg=#2e3440,fg=#d8dee9"
set-window-option -g window-status-style "bg=#2e3440,fg=#d8dee9"
set-window-option -g window-status-current-style "bg=#88c0d0,fg=#2e3440"
set-window-option -g monitor-activity on
set-window-option -g window-status-activity-style "fg=#f9e2af,bg=#2e3440,bold"
# Reload this file with Ctrl-b r.
bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded"
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
run '~/.tmux/plugins/tpm/tpm'