From 08d53ede91bd79904d2be2dc2ef9a5642c3ed0ae Mon Sep 17 00:00:00 2001 From: Matheus Peviani Vellone Date: Sat, 10 Aug 2019 10:37:05 -0300 Subject: [PATCH] tmux: new-session bind and go to next sessions on session-kill --- tmux/.tmux.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 72fc9f5..14233b4 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -39,6 +39,12 @@ bind P \ setw synchronize-panes\;\ display "Synchronized panes are #{?pane_synchronized,on,off}" +bind S \ + new-session + +# Confirm kill session and go to next session on session-kill +bind-key X confirm-before -p "Kill #S (y/n)?" "run-shell 'tmux switch-client -n \\\; kill-session -t \"\$(tmux display-message -p \"#S\")\"'" + # No delay for escape key press set -sg escape-time 0