MacOS ZSH终端$主机显示.ht.home

发布于 2025-01-26 16:53:35 字数 314 浏览 3 评论 0原文

一段时间以来,我一直在修补我的.zshrc文件,以更改命令提示符的外观,还使其显示Git的某些状态。但是在我做了一些更改之后 当我输入echo $ host查看笔记本电脑的主机名时, /a>出现。 (纳尼亚正是我称为主机名的)它用来显示narnia.local,但现在显示narnia.ht.home。有人可以解释是什么原因导致这种变化,以及我是否应该担心这一点?

I've been tinkering with my .zshrc file for a while to change how the command prompt looks and also make it display certain statuses for git. But after I made some changes
when I type in echo $HOST to see the hostname of my laptop, this shows up. (narnia is just what I named the hostname) It used to show narnia.local, but now it shows narnia.ht.home. Could someone explain what caused this to change, and whether or not it's something I should worry about?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文