Frequently I want to exit my ssh session without also killing the tmux session I am using. To do this I have to run the following commands:
tmux detach exit
or alternatively use the shortcut
Ctrl+B D and then
Is there a way to streamline this into one command? I've tried using an alias but it seems to execute both commands inside the tmux session.