diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2015-10-22 02:53:32 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2015-10-22 02:53:32 +0300 |
commit | 84681d4cc1a025322df533b20303fe075411bcf5 (patch) | |
tree | fea224b115df0edcc0ae61c57b348a641a58936b /README.md | |
parent | 981c85af39cea400281794ff31dabe242aae74fb (diff) | |
parent | 3e828cbaa47227fde34624229018d90d4651a586 (diff) |
Merge pull request #126 from rjorgenson/next
added a prompt segment to display battery status on laptops
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -71,6 +71,7 @@ configuration is the default: The segments that are currently available are: * [aws](#aws) - The current AWS profile, if active. +* [battery](#battery) - Current battery status. * [context](#context) - Your username and host. * [dir](#dir) - Your current working directory. * **go_version** - Show the current GO version. @@ -103,6 +104,23 @@ your `~/.zshrc`: export AWS_DEFAULT_PROFILE=<profile_name> +##### battery + +This segment will display your current battery status (fails gracefully +on systems without a battery). It can be customized in your .zshrc +with the environment variables detailed below with their default values. + + POWERLEVEL9K_BATTERY_CHARGING="yellow" + POWERLEVEL9K_BATTERY_CHARGED="green" + POWERLEVEL9K_BATTERY_DISCONNECTED=$DEFAULT_COLOR + POWERLEVEL9K_BATTERY_LOW_THRESHOLD=10 + POWERLEVEL9K_BATTERY_LOW_COLOR="red" + +In addition to the above it supports standard _FOREGROUND value without affecting the icon color + +Supports both OS X and Linux(time remaining requires the acpi program on Linux) + + ##### context The `context` segment (user@host string) is conditional. This lets you enable it, but only display |