57 lines
1.6 KiB
Bash
57 lines
1.6 KiB
Bash
# unbind C-x
|
|
unbind M-,
|
|
set -g prefix C-Space
|
|
bind C-Space send-prefix
|
|
|
|
set -g focus-events on
|
|
# set -g default-terminal "screen-256color"
|
|
# set -ga terminal-features ',xterm-ghostty:RGB'
|
|
# macOS specific (Ghostty)
|
|
if-shell '[[ $(uname) == "Darwin" ]]' {
|
|
set -ga terminal-features ',xterm-ghostty:RGB'
|
|
set -as terminal-overrides ',xterm-ghostty:Tc'
|
|
}
|
|
|
|
# Linux specific (Foot)
|
|
if-shell '[[ $(uname) == "Linux" ]]' {
|
|
set -ga terminal-features ',foot:RGB'
|
|
set -as terminal-overrides ',foot:Tc'
|
|
}
|
|
set-option -g default-shell $SHELL
|
|
set -g status-style 'fg=#c3e88d bg=#1b1d2b'
|
|
set -g status-left-length 100
|
|
set -g status-right-length 20
|
|
set -g status-left "#[fg=#ffc777, bold] [#S] #[fg=#ffc777,nobold]~ "
|
|
set -g status-right "#[fg=#c3e88d] %m-%d-%Y #[fg=#ffc777] %H:%M "
|
|
|
|
set -g base-index 1
|
|
set -g pane-base-index 1
|
|
set -g detach-on-destroy off
|
|
set -g renumber-windows on
|
|
set -g set-clipboard on
|
|
set -s escape-time 0
|
|
set -g status-position top
|
|
|
|
bind-key h previous-window
|
|
bind-key l next-window
|
|
bind -r f run-shell "tmux neww ~/.local/bin/tmux-windowizer"
|
|
bind -r v run-shell "tmux neww ~/.local/bin/tmux-sessionizer"
|
|
bind-key z resize-pane -Z
|
|
bind -n C-h select-pane -L
|
|
bind -n C-j select-pane -D
|
|
bind -n C-k select-pane -U
|
|
bind -n C-l select-pane -R
|
|
bind -n C-S-h resize-pane -L 5
|
|
bind -n C-S-j resize-pane -D 5
|
|
bind -n C-S-k resize-pane -U 5
|
|
bind -n C-S-l resize-pane -R 5
|
|
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
|
|
|
set -g @continuum-restore 'on'
|
|
set -g @resurrect-strategy-nvim 'session'
|
|
|
|
run '$HOME/.config/tmux/plugins/tpm/tpm'
|