如何设置 OS X 终端的默认主页?
由于某种原因,在我安装 Boot Camp 后,我的 os x 终端开始默认指向 Boot Camp 驱动器而不是我的 os x 主目录! 进入终端后,我知道如何来回切换并且能够做到这一点,但我想知道如何使我的终端默认回到我的 os x 主文件夹?
我已经在“系统偏好设置”->“帐户”->“Control”下检查了我的主目录,然后单击我的帐户,它指向正确的位置。 我也尝试过卸载它,但没有运气。
For some reason after I installed Boot Camp, my os x terminal started to point to the Boot Camp drive instead of my os x home directory by default! Once in the terminal I know how to switch back an forth and am able to do that, but I was wondering how to make my terminal default back to my os x home folder?
I've checked my Home Directory under System Preferences->Accounts->Control-click on my account and it is pointing to the right place. I've also tried unmounting it with no luck.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一些幕后的摆弄,但您可以简单地输入
并启动一个新终端。 然后您应该位于您想要的目录中。
This is a bit of under-the-hood fiddling, but you could simply enter
and startup a new terminal. You should then be in the directory you want.
您可能需要这些有关如何使用命令行的说明:
https://superuser.com/questions/154193/setting-a-users-home-directory-on-mac-os-x-server-from-the-command-line
基本上,使用dscl命令行工具来查看系统认为您的主目录设置为什么,或者尝试重置它......
You probably want these instructions for how to use the command line:
https://superuser.com/questions/154193/setting-a-users-home-directory-on-mac-os-x-server-from-the-command-line
Basically, use the dscl command line tool to see what the system thinks your home directory is set to, or to try and reset it....