I have a key bound to setup panes to my liking, but sometimes things get messed up or out of hand and I want to close all the panes and rerun the script. Is there a simple
tmux command to close all panes except the one I am currently in?
You can use the "kill-pane" command.
So, for example if you want to kill all the panes except for pane 0:
If you don't know what you pane numbers are you can use the "display-panes" command: