How can I prevent tmux exiting with Ctrl-d?
Posted
by
Cas
on Super User
See other posts from Super User
or by Cas
Published on 2012-09-26T01:41:29Z
Indexed on
2012/09/26
3:40 UTC
Read the original article
Hit count: 478
I use tmux on my server and recently I found to my cost that ctrl-d will exit tmux and lose all the session information, my intention was to simply end the ssh session but failed to notice I was still in tmux until too late.
I am aware that I should be careful in future when using ctrl-d but I wondered if there a way to prevent tmux for exiting when hitting ctrl-d by accident? A solution such as a prompt, confirmation or detaching would be fine.
© Super User or respective owner