diff --git a/tmux-cssh b/tmux-cssh index 41862ed..820b2a8 100755 --- a/tmux-cssh +++ b/tmux-cssh @@ -121,6 +121,7 @@ fi if [ -n "${TMUX}" ]; then # We are in a tmux, just switch to the new session + tmux set-option -t "${tmux_session}" detach-on-destroy no-detached tmux switch-client -t "${tmux_session}" else # We are NOT in a tmux, attach to the new session