Automatically clean up unnamed & unattached tmux sessions.
Add the following line to your .tmux.conf
:
set -g @plugin 'sei40kr/tmux-cleanup-unnamed-sessions
destroy-unattached
option enables you to destroy unattached sessions no matter
they're named or not. This plugin destroys only unattached & unnamed sessions.