From 44d1ccc82d2f3adb996eb032abd8affe73284044 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Sat, 3 Sep 2022 12:24:59 +0300 Subject: [PATCH] Use exec to replace current shell with tmux instead of forking --- home/.config/zsh/05-misc.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.config/zsh/05-misc.zsh b/home/.config/zsh/05-misc.zsh index 5118b02..9a31d42 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