killing tmux
https://youtu.be/QWPyYx54JbE
Now it’s time to switch gears, we are onto a different part of our day and
there are just too many sessions running and we need to clean up shop.
kill-server # [1]
One viable option is to nuke the whole dang thing. I actually do this more
than you might think.
tmux kill-server
save and commit your work diligently before kill-server
kill-session # [2]
A more reasonable option might be to kill a single session.
# kills the current session
tmux kill-session
# kills the session named scratch
tmux kill-session -t scratch
choose-tree # [3]
Killing sessions one by one from the command line can be a bit tedious, and
involve more keystrokes than necessary. Another option built right into tmux
is choose-tree. By default choose-tree is bound to prefix+s, that’s
pressing control+b then s. Once you are in choose-tree, you can navigate
around with your configured navigation scheme, press x to kill a session, or
pane or window then y to confirm. You can also ...