From b1f66acae37b1e27446e26721457e9e0f4e3d944 Mon Sep 17 00:00:00 2001 From: Dr Amr Osman Date: Sun, 24 Mar 2024 19:08:13 +0200 Subject: [PATCH] Update .tmux.conf add create a session with name and kill --- .tmux.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index e81a820..99cd3c1 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -58,9 +58,13 @@ set -g visual-activity off # -- navigation ---------------------------------------------------------------- +These two settings let you create/kill a new session when pressing Prefix S (Shift+s) or Prefix K (Shift+k) respectively: # create session -bind C-c new-session +bind C-s command-prompt -p "New Session:" "new-session -A -s '%%'" + +# kill session +bind K confirm kill-session # find session bind C-f command-prompt -p find-session 'switch-client -t %%'