Add dirpersist and logic to open new shells into previous changed pwd