当我打开终端窗口时,现在在我的zsh shell中得到此提示。
Last login: Wed Mar 11 15:35:53 on ttys000
You have new mail.
167~(:|✔) %
我以为它可能是用户标识,但是未在此处列出:
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”来自哪里?
您在.zshrc
中有以下一行:
PROMPT='%B%m%~%b$(git_super_status) %# '
您可以在“扩展提示序列”部分的man zshmisc
中阅读转义变量的含义。 %B
更改为粗体模式,%m
输出主机名(最多第一个.
)。因此,我相信167是您的主机名。