↧
Answer by terdon for execute script when closing terminal
The ~/bash_logout file is only sourced when you exit a login shell (from man bash): When an interactive login shell exits, or a non-interactive login shell executes the exit builtin command, bash reads...
View Articleexecute script when closing terminal
I want to execute a specific sh script when closing a terminal. I edited the .bash-logout file, added this line of code inside if statement [ -x /home/user/Documents/logout_msg.sh ] &&...
View Article