Hook function before the main shell is about to exit
Hook function zshexit
is called right before the main shell is about to exit normally.
It’s not called when functions exit or when subshells exit.
Links
BashSupport Pro 是一款支持 zshexit** 的 **Zsh 集成开发环境 - 立即试用!