-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
68 lines (55 loc) · 2.07 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
# X window title
set -g set-titles on
set -g set-titles-string "tmux #S"
# Clickable windows and panes, resizable panes
set -g mouse on
# Enable truecolor support
# https://jdhao.github.io/2018/10/19/tmux_nvim_true_color/
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",alacritty*:Tc"
# Colors
set -g status-style fg=color7,bg=color26
set -g window-status-current-style fg=color7
set -g window-status-style fg=color27
set -g pane-border-style fg=color20
set -g pane-active-border-style fg=color20
set -g copy-mode-match-style fg=color0,bg=color24
set -g copy-mode-current-match-style fg=color0,bg=color7
set -g message-style fg=color0,bg=color7
set -g mode-style fg=color0,bg=color7
# Windows
set -g window-status-current-format "#I:#W" # Show current window through fg color instead of '*'
set -g base-index 1 # Start window numbering at 1
set -g renumber-windows on
# Statusbar information & position
set -g status-left-length 50 # More visible text
set -g status-right-length 100
set -g status-left ""
set -g status-right "#{s|$HOME|~|:pane_current_path}" # Why does this only work with pipes as delimiters?
set -g status-interval 0 # PROMPT_COMMAND refreshes statusbar
# No delay after pressing Esc (for example)
set -s escape-time 0
# ========= KEYBINDS =========
# Reload .tmux.conf within tmux session (useful for testing options)
bind R source-file ~/.tmux.conf
# Toggle visibility of statusbar
bind s set status
bind e command-prompt -I "rename-session "
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R # Overrides l 'move to previously selected window', not important
bind -r Tab last-pane
bind o kill-pane -a # Close all panes except current one
bind O kill-window -a
bind -r Left split-window -hb
bind -r Down split-window -v
bind -r Up split-window -vb
bind -r Right split-window -h
bind -n C-S-Left swap-window -t -1\; select-window -t -1
bind -n C-S-Right swap-window -t +1\; select-window -t +1
# === PLUGINS (TPM) ===
set -g @plugin 'tmux-plugins/tpm'
# none for now
# Keep at bottom of file:
run '~/.tmux/plugins/tpm/tpm'