1. exit normally when switching directory in term-mode