-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
93 lines (70 loc) · 2.48 KB
/
.tmux.conf
File metadata and controls
93 lines (70 loc) · 2.48 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Use Ctrl+A as the prefix key
set -g prefix C-a
unbind C-b
bind C-a send-prefix
set -g mouse on
# Use Vi mode
setw -g mode-keys vi
# Navigate with vim like bindings
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# open TMS in popup
bind C-o display-popup -E "tms"
bind C-i display-popup -E "tms switch"
# skip "kill-pane 1? (y/n)" prompt
bind-key x kill-pane
# Toggle status bar
bind-key b set-option status
set -g detach-on-destroy off # don't exit from tmux when closing a session
# Allow tmux to set the terminal title
set -g set-titles on
set-option -sg escape-time 10
# Increase scrollback buffer size
set -g history-limit 10000
# Start window and pane numbering from 1 for easier switching
set -g base-index 1
setw -g pane-base-index 1
# Renumber windows automatically when a window is closed
set-option -g renumber-windows on
# Allow automatic renaming of windows
set -g allow-rename on
set-option -ga terminal-overrides ",xterm-kitty:Tc"
# Vesper theme styling
set -g status-position top
set -g status-justify left
set -g status-style 'bg=#101010 fg=#a0a0a0'
# Left side - session name with orange accent
set -g status-left-length 30
set -g status-left '#[fg=#101010,bg=#ffc799,bold] #S #[fg=#ffc799,bg=#101010]'
# Right side - time
set -g status-right-length 30
set -g status-right '#[fg=#a0a0a0]%I:%M %p'
# Window tabs
set -g window-status-format '#[fg=#505050] #I #W '
set -g window-status-current-format '#[fg=#ffc799,bold] #I #W '
set -g window-status-separator ' '
# Pane borders
set -g pane-border-style 'fg=#2a2a2a'
set -g pane-active-border-style 'fg=#ffc799'
# Message styling
set -g message-style 'bg=#2a2a2a fg=#ffffff'
set -g message-command-style 'bg=#2a2a2a fg=#ffc799'
set -g mode-style 'bg=#2a2a2a fg=#ffffff'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'christoomey/vim-tmux-navigator'
# change the path for newly created windows
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -a -c "#{pane_current_path}"
# Autoinstall TPM
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
set -g @continuum-restore 'on'