mirror of
https://github.com/d0zingcat/dotfiles.git
synced 2026-05-14 07:26:44 +00:00
chore: add kill session for tmux
Signed-off-by: Li Tang <iamtangli42@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user