I use tmux and my shell is zsh with a variety of Oh-my-zsh customization. Lately I have started to experience the terminal abruptly closing when finishing executing a program such as git log showing in less and other things. i've seen it while running multiple programs so it seems liable to be the shell itself, but there is no way to be sure.
So, I am wondering about a practical way to configure the shell for it to produce log files about what it is doing and maybe then I can see some information about what leads up to the crash. Maybe configure core dumps or something and use GDB on them.
Just feel sort of lost here about where to start because zsh has always been really really solid for me for years.