通常在工作流程中,您在目录中工作,然后需要创建到同一目录的第二个终端或会话.
TAB 1
#~/home
cd really
#~/home/really
cd long
#~/home/really/long
cd filepath
#~/home/really/long/filepath
node filepath
#session now occupied
#new TAB
#CTR + T
#~/home
#I want to be in the same filepath
Run Code Online (Sandbox Code Playgroud)
有什么地方可以做到这一点吗?
che*_*ner 65
配置文件的其中一个选项是在使用该配置文件创建会话时使用的目录.默认设置是使用您的主目录,但您可以将其更改为使用以前的目录.您可以在默认配置文件中更改此设置(允许您继续使用⌘- T),或者您可以创建使用此设置的新配置文件,并指定其他键盘快捷方式以使用该配置文件创建会话.