当我打开一个终端窗口时,我现在在我的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"是从哪里来的?
您的.zshrc
:中有以下行
PROMPT='%B%m%~%b$(git_super_status) %# '
您可以在"PROMPT序列的扩展"一节中阅读man zshmisc
中转义变量的含义。%B
变为粗体模式,%m
输出主机名(直到第一个.
(。所以我相信167就是你的主机名。