Stefano Mazzucco 9fd5927cd2 Add battery support for MacOS 4 yıl önce
..
functions 9fd5927cd2 Add battery support for MacOS 4 yıl önce
README.md e29b2afc80 Add first (crude) support for battery info 9 yıl önce
init.zsh 9fd5927cd2 Add battery support for MacOS 4 yıl önce

README.md

Battery

Expose information about the battery status.

Requires upower (faster) or acpi.

Theming

To display the name of the current virtual enviroment in a prompt, define the following style in the prompt_name_setup function.

# %v - battery status.
zstyle ':prezto:module:battery:info:battery_status' format 'battery status:%v'

Then add battery_info[battery_status] to $PROMPT or $RPROMPT and call battery-info in the prompt_name_precmd hook function.

Authors

Stefano Mazzucco