tmux exit quickly and kill session

1k Views Asked by At

I have a few tmuxinator projects. When running one in tmux I would like to be able to exit it quickly (e.g. one key combination) and kill the session so that next time I open the project it starts in the same state. Detaching doesn't work as it doesn't reset the state.

Is this possible?

1

There are 1 best solutions below

0
pez On BEST ANSWER

Just add bind k kill-session to .tmux.conf. And then you can exit and kill the session with PREFIX k.