macOS终端zsh出现百分比是什么意思?

如图所示,不知道是什么含义,正常应该是没有的。
image.png

阅读 910
1 个回答

这不是电池电量吗,你是不是用了 starship 了,这里的文档说明了电池电量的用法。

 [[battery.display]]
 threshold = 80
 style = "bold yellow"

threshold 设置电量在多少百分比以下显示。

默认电量告警是开启的,默认开启百分比是 10。

如果要关闭加上 disable = true

 [[battery.display]]
 disable = true
 threshold = 80
 style = "bold yellow"