From e2442586b6f22c066b5e363c1f9dbbceb8e0097a Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Wed, 2 Apr 2025 17:41:37 -0500 Subject: [PATCH] add delete command --- .config/tmux/tmux.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index d1875b6..2acdd31 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -81,6 +81,12 @@ bind C-s display-popup -E "\ fzf --reverse --header jump-to-session --preview 'tmux capture-pane -pt {}' \ --bind 'enter:execute(tmux switch-client -t {})+accept'" +bind C-d display-popup -E "\ + tmux list-sessions -F '#{?session_attached,,#{session_name}}' |\ + sed '/^$/d' |\ + fzf --reverse --header 'Delete Session' --preview 'tmux capture-pane -pt {}' \ + --bind 'enter:execute(tmux kill-session -t {})+accept'" + bind g display-popup -E "lazygit" run '~/.tmux/plugins/tpm/tpm'