aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorrjorgenson <rjorgenson@gmail.com>2015-10-18 20:55:37 +0300
committerrjorgenson <rjorgenson@gmail.com>2015-10-18 20:55:37 +0300
commitacf5e97756a97c0feb12c38475266b0c079ca25f (patch)
treea0b603f901b6dc839753b6d2bf2ab189f16284ec /README.md
parentd46634a0a7c26c65307f976d208bc890739ef5d2 (diff)
added battery prompt segment usable on OS X systems
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
index a06b4857..ac397e65 100644
--- a/README.md
+++ b/README.md
@@ -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(OS X only).
* [context](#context) - Your username and host.
* [dir](#dir) - Your current working directory.
* **history** - The command number for the current line.
@@ -101,6 +102,22 @@ your `~/.zshrc`:
export AWS_DEFAULT_PROFILE=<profile_name>
+##### battery
+
+This segment will display your current battery status on an OS X system(fails gracefully
+on systems without a battery and non OS X systems). 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
+
+
+
##### context
The `context` segment (user@host string) is conditional. This lets you enable it, but only display