-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
82 lines (59 loc) · 2.15 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
# 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
# skip "kill-pane 1? (y/n)" prompt
bind-key x kill-pane
# Toggle status bar
bind-key b set-option status
bind-key "K" display-popup -E -w 40% "sesh connect \"$(
sesh list -i | gum filter --limit 1 --placeholder 'Pick a sesh' --prompt='⚡'
)\""
# Clear and clear scrollback buffer
# bind-key c send-keys -R \; clear-history
bind-key x kill-pane # skip "kill-pane 1? (y/n)" prompt
set -g detach-on-destroy off # don't exit from tmux when closing a session
set -g status-style bg=#ffd900,fg=black
# 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
# Allow automatic renaming of windows
set -g allow-rename on
set-option -ga terminal-overrides ",xterm-kitty:Tc"
# 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'
set -g @plugin 'niksingh710/minimal-tmux-status'
# 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}"
# window with a list of sessions to switch to
# 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'"
run '~/.tmux/plugins/tpm/tpm'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-restore 'on'
# Set session bar at the top
set-option -g status-position top
# don't exit from tmux when closing a session
set -g detach-on-destroy off