1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 12:20:07 +00:00

feat: Add segment comment

This commit is contained in:
Li Haoyuan 2024-07-10 13:44:46 +08:00
parent 14a038bbda
commit 39e1c51ae3

View file

@ -1332,6 +1332,7 @@ _p9k_prompt_fvm_init() {
}
################################################################
# Segment that displays the battery status in levels and colors
prompt_battery() {
[[ $_p9k_os == (Linux|Android) ]] && _p9k_prompt_battery_set_args
(( $#_p9k__battery_args )) && _p9k_prompt_segment "${_p9k__battery_args[@]}"