-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
51 lines (38 loc) · 1.89 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
# Patched Nerd Font req. (rec. FantasqueSansM): https://www.nerdfonts.com/
# Colors from: https://github.com/zatchheems/tokyo-night-alacritty-theme/blob/main/tokyo-night.yaml
set-option -ga terminal-overrides ",xterm-256color:Tc"
set-option -g status-interval 1
# Auto-rename windows to base current path and current command
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}:#{pane_current_command}'
set -g status-style "bg=#32344a,fg=#bb9af7"
# Magical left status w/ session_name
set -g status-left "#[bg=#7aa2f7,fg=#32344a] #{session_name} #[bg=#32344a,fg=#7aa2f7]"
set -g status-left-length 0
# Magical right status starry decor
set -g status-right "#[bg=#32344a,fg=#7aa2f7] #[bg=#7aa2f7,fg=#32344a] "
set -g status-right-length 20
set -g window-status-separator ""
set -g window-status-format "#[bg=#504945] #{window_index} #{window_name} #{?#{==:#{window_index},#{e|-:#{session_windows},1}},#[bg=#32344a fg=#504945],#{?#{==:#{window_index},#{e|-:#{active_window_index},1}},,}}"
set -g window-status-current-format "#[bg=#32344a,fg=#ad8ee6]#[bg=#ad8ee6,fg=#282828]#{window_index} #{window_name}#[bg=#32344a,fg=#ad8ee6]"
set -g pane-border-format "#{?pane_active,#[fg=#32344a bg=#ad8ee6] #{pane_index} #{pane_current_command} #[fg=#ad8ee6 bg=default],#{pane_index} #{pane_current_command}}"
set -g pane-border-status "top"
set -g pane-border-style fg=#ad8ee6
set -g pane-active-border-style fg=#ad8ee6
# Rebind prefix as C-z
unbind C-b
unbind C-c
set -g prefix C-z
bind C-z send-prefix
# Rebind split-window to | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# Reload config shortcut
bind r source-file ~/.tmux.conf
# Turn mouse interaction on
set -g mouse on
# TODO: Template for MacOS
# See: set-environment -g PATH "/usr/local/bin:/bin:/usr/bin"
# set-environment -g PATH "/usr/local/bin:/bin:/usr/bin"