diff --git a/home/.config/zsh/05-misc.zsh b/home/.config/zsh/05-misc.zsh index 5118b024..9a31d42e 100644 --- a/home/.config/zsh/05-misc.zsh +++ b/home/.config/zsh/05-misc.zsh @@ -1,6 +1,6 @@ # Launch tmux if logging in over ssh if [[ -z "$TMUX" ]] && [ "$SSH_CONNECTION" != "" ]; then - tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux + exec tmux attach-session -t ssh_tmux || exec tmux new-session -s ssh_tmux fi # share history between running zsh instances