add auto switch to current directory