. .bashrc function logout { history -c } trap logout EXIT