bashrc: edit the diary at the end of the day