Alias or shell script to confirm 'exit' commands from a shell
I use PuTTy to connect to multiple servers at work, and am usually jumping between various su <user> layers all day. Therefore, typing 'exit' to get back down to the user I need to be next is pretty frequent.
However, sometimes I actually am just logged on as myself, and habitually type 'exit' instead of 'cd' or something like that. Is there a way to write a shell script called 'exit.sh' which would prompt me with "Sure you want to exit? [Y/N]" and if I type 'Y' would actually exit the window ...'N' would just exit the script?
|