[英]Terminal - How to open window at a certain directory
When I open Terminal on Mac, it starts in the root directory. 当我在Mac上打开Terminal时,它从根目录开始。 I don't want to have to type cd to change my directory every time I open terminal, I want to be in that directory to begin with. 我不想每次打开终端时都必须键入cd来更改目录,所以我想先进入该目录。
How do I make terminal start in a specific directory? 如何使终端在特定目录中启动? Also, how do I make terminal always start full screen and in a particular color? 另外,如何使终端始终以全屏和特定颜色启动?
Also, what is the command to open text mate in terminal? 另外,在终端中打开文本配合的命令是什么?
This perhaps better belongs on Ask Different , but here are two options to start a Terminal session at a particular location: 这也许更好地属于Ask Different ,但是这里有两个选项可以在特定位置启动终端会话:
Open Terminal Preferences to the Settings section, and in the Window tab check the "Run command", and enter cd yourdirectorypath
in the command field. 在“设置”部分打开“终端首选项” ,然后在“ 窗口”选项卡中检查“运行命令”,然后在命令字段中输入cd yourdirectorypath
。 It will automatically run for any new Terminal window. 它将在任何新的“终端”窗口中自动运行。
Edit the ~/.bash_profile
and add the cd yourdirectorypath
line at the end. 编辑~/.bash_profile
并在最后添加cd yourdirectorypath
行。
As for starting fullscreen, if you quit Terminal with a fullscreen window open, it will launch that way. 至于全屏启动,如果您在打开全屏窗口的情况下退出终端,它将以这种方式启动。
You can set colour schemes in the preferences, there are many built-in "profiles". 您可以在首选项中设置配色方案,其中有许多内置的“配置文件”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.