summaryrefslogtreecommitdiff
path: root/plugins/battery/battery.plugin.zsh
AgeCommit message (Collapse)Author
2017-02-22Fixing battery prompt formatting issue (cf #5894) (#5895)guyzmo
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
2016-10-10Use OSTYPE instead of uname whenever possible for better speed. (#5496)Hong
2016-09-15Fix battery plugin when acpi writes to stderr (#5413)Reed Riley
* Fix battery plugin when acpi writes to stderr * Make stderr redirection in battery plugin more idiomatic
2014-07-23Use $OSTYPE instead of uname to speed things upChristian Höltje
The $OSTYPE variable is set at ZSH compile time and can be safely used to determine the OS of the system. e.g. darwin (os x)
2014-03-18Fixed errors if acpitool isn't installed on linuxReed Riley
2014-03-16Merge pull request #2539 from chriswiggins/masterRobby Russell
Update battery plugin to show calculating - OSX
2014-03-16Merge pull request #2574 from thiagowfx/linux-batteryRobby Russell
added the linux implementation to the battery plugin
2014-03-13Merge pull request #1776 from ronshapiro/masterRobby Russell
plugged_in function
2014-03-02added the linux implementation to the battery pluginThiago Perrotta
2014-02-17Update battery plugin to show calculating - OSXChris Wiggins
Instantly after removing the charger, I have found that the "AvgTimeToEmpty" value can swing to rediculous values. Apple's current claim is that the max battery life is 12 hours, so any value larger than this is considered a "time is being calculated" value.
2014-01-18Adds a method that print a battery gaugeBrice Dutheil
It is especially useful for themes, this function is a port of the code written by Steve Losh and made available on [this blog entry](http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/#my-right-prompt-battery-capacity)
2013-11-04Prevent errors in prompts if no info available.James Seward
Define empty functions instead of none at all if we can't figure out the platform.
2013-04-29plugged_in functionRon Shapiro
2013-04-23Merge pull request #1641 from NeuralSandwich/masterRobby Russell
Battery plugin updates
2013-04-20Separate the battery_pct_remaining data into it's own function so that it ↵Ron Shapiro
can be obtained even if the battery is connected.
2013-03-02Updated battery plugin. Displays charging time.Sean Jones
linux battery level now refreshes after every command
2012-12-02Fixed Kernel Detection in battery pluginSean Jones
2012-12-02Added support for Mac to battery pluginSean Jones
2011-10-20add: battery pluginPeter Hoeg