The Bash equivalent is ~/.bash_logout, and requires no special setup.
Bash与之对应的文件是 ~/.bash_logout ，并且不需要专门的设置。