This is what I use with Tmux:
https://github.com/sorin-ionescu/prezto/blob/master/modules/...Basically a daemon session is started (if it wasn't there before) and every terminal you open automatically connects to that session.
This means that you can close every terminal, the session is still open and new terminals will use the already existing session. As long as tmux itself isn't stopped (reboot, etc.) you'll stay in the same session.
Which is cool because everything is de facto detached.