Set the default directory in mac terminal

后端 未结 6 1879
天命终不由人
天命终不由人 2020-12-23 09:00

I only use terminal (mac) for git, and I only use git for one directory. Is it possible to set the default directory (the directory when terminal is opened) to the directory

6条回答
  •  礼貌的吻别
    2020-12-23 09:34

    Use a Window Group. Arrange your shell window(s) as you'd want them to be on startup - cd to the directory you want in each, set colors, Shell--Edit Title, etc. Then go to Window--"Save Windows as Group...". Give it a name, check "Use window group when Terminal starts". Next time you start, this arrangement will be your starting point.

提交回复
热议问题