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() {