Automatically save your current directory when you leave a shell.