【发布时间】:2020-03-11 07:52:59
【问题描述】:
当我打开一个终端窗口时,我现在在我的 zsh shell 中得到这个提示。
Last login: Wed Mar 11 15:35:53 on ttys000
You have new mail.
167~(:|✔) %
我以为它可能是一个用户 ID,但这里没有列出:
167~(:|✔) % id
uid=502(crmpicco) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),701(com.apple.sharepoint.group.1),33(_appstore),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh),400(com.apple.access_remote_ae),702(com.apple.sharepoint.group.2)
这是我的~/.zshrc,最近没有任何变化。
https://gist.github.com/crmpicco/6c05f4a051ac650909fe6b636fbc7324
那个随机的“167”是从哪里来的?
【问题讨论】:
-
试试
echo $PS1看看它是什么。 -
这可能是您的主机名吗?
PROMPT变量中的%m扩展为主机名。
标签: macos shell zsh macos-sierra