1
vote
1answer
452 views

Run “logout script” for non-login shells

I have a .bash_logout script that I've put in the home directories of the vagrant and root users of a VM (created, as you have already guessed, with Vagrant) that I'm using for development. The ...
2
votes
1answer
254 views

Script to let the user cancel a shell logout

I want to write a script to display a message and possibly cancel a logout from an interactive shell. This is because I often run background jobs in some of my shells and in the spur of the moment I ...