From f16a24a18f2cc420d9a87cbe199f2ecd6d04c2cf Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Sat, 20 Apr 2024 19:33:40 +0200 Subject: [PATCH] chore(tmux): add sesh keybinding to kill sessions --- tmux/tmux.conf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 87e5e2b..9b35810 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -125,16 +125,18 @@ bind P run "tmux paste-buffer" set -g @thumbs-command 'echo -n {} | pbcopy' -bind-key "T" run-shell "sesh connect $( - sesh list -tz | fzf-tmux -p 55%,60% \ +bind-key "T" run-shell "sesh connect \"$( + sesh list | fzf-tmux -p 55%,60% \ --no-sort --border-label ' sesh ' --prompt '⚡ ' \ - --header ' ^a all ^t tmux ^x zoxide ^f find' \ + --header ' ^a all ^t tmux ^g configs ^x zoxide ^d tmux kill ^f find' \ --bind 'tab:down,btab:up' \ --bind 'ctrl-a:change-prompt(⚡ )+reload(sesh list)' \ --bind 'ctrl-t:change-prompt(🪟 )+reload(sesh list -t)' \ + --bind 'ctrl-g:change-prompt(⚙️ )+reload(sesh list -c)' \ --bind 'ctrl-x:change-prompt(📁 )+reload(sesh list -z)' \ - --bind 'ctrl-f:change-prompt(🔎 )+reload(fd -H -d 2 -t d -E .Trash . ~)' -)" + --bind 'ctrl-f:change-prompt(🔎 )+reload(fd -H -d 2 -t d -E .Trash . ~)' \ + --bind 'ctrl-d:execute(tmux kill-session -t {})+change-prompt(⚡ )+reload(sesh list)' +)\"" # ========= Plugins =========