feat: Add segment comment

pull/2726/head
Li Haoyuan 6 months ago
parent 14a038bbda
commit 39e1c51ae3

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

Loading…
Cancel
Save