From f240158cc0ae1ba4b9a6e512977ffd2ac16175af Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 6 Jul 2025 07:32:55 +0200 Subject: [PATCH] tmux/tma --- sh/tmux.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sh/tmux.sh b/sh/tmux.sh index 930ea42..85a616f 100644 --- a/sh/tmux.sh +++ b/sh/tmux.sh @@ -2,6 +2,17 @@ # │ tmux │ # ╰──────╯ +# attach +#= tma +rwx_tmux_attach() { + local server="${1}" + if [ "${server}" ]; then + tmux -L "${server}" attach-session + else + rwx_tmux_list + fi +} + # kill #= tmk rwx_tmux_kill() {