chore: add kill session for tmux

Signed-off-by: Li Tang <iamtangli42@gmail.com>
This commit is contained in:
2026-04-01 12:33:41 +08:00
parent b29ada3931
commit 2d2ec7504c
2 changed files with 3 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ set-option -g set-titles-string "#S / #W"
set -sg escape-time 1
# set session starts with 1
set -g base-index 1
# set pane starts with 1
# set pane starts with 1
setw -g pane-base-index 1
# enable mouse
set -g mouse on
@@ -42,6 +42,7 @@ bind l select-pane -R
bind n command-prompt 'rename-window %%'
bind N command-prompt 'rename-session %%'
bind S command-prompt -p "New Session:" "new-session -A -s '%%'"
bind X confirm-before -p "Kill session #S? (y/n)" kill-session
# switch window
bind-key , previous-window # <
@@ -52,7 +53,7 @@ bind-key > swap-window -t :+
# clear screen
bind-key C-k send-keys -R \; clear-history\; send-keys "Enter"
# move cursor between windows
# move cursor between windows
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
@@ -121,4 +122,3 @@ set-window-option -g window-status-separator ""
# Set window notifications
set-option -g monitor-activity on
set-option -g visual-activity off

View File

@@ -41,7 +41,6 @@ CONFIG_FILES=(
pycodestyle
wezterm
starship.toml
stylua.toml
direnv
ghostty
)