prevent opening the same directory on a new terminal window