With tmux, you can replace both: tmux new -s project tmux attach -t project with: tmux new -A -s project