如何设置 OS X 终端的默认主页?

发布于 2024-07-06 20:16:07 字数 225 浏览 6 评论 0原文

由于某种原因,在我安装 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

美胚控场 2024-07-13 20:16:07

这是一些幕后的摆弄,但您可以简单地输入

cd <directory>

in /Users/<yourUserName>/.profile

并启动一个新终端。 然后您应该位于您想要的目录中。

This is a bit of under-the-hood fiddling, but you could simply enter

cd <directory>

in /Users/<yourUserName>/.profile

and startup a new terminal. You should then be in the directory you want.

她说她爱他 2024-07-13 20:16:07

您可能需要这些有关如何使用命令行的说明:

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....

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文