End ssh session on tmux detach

This commit is contained in:
Jan Jastrow 2024-08-11 01:37:12 +02:00
parent ac3c53cda7
commit 37dc883e1e

1
zshrc
View File

@ -17,6 +17,7 @@ source "$HOME/.dotfiles/zsh/settings"
#
if [[ $- =~ i ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_TTY" ]]; then
tmux attach-session -t default || tmux new-session -s default
exit
fi
# Define platform