Use exec to replace current shell with tmux instead of forking
This commit is contained in:
parent
7fe8f0b9e2
commit
44d1ccc82d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue