zshrc: rewrite battery function
authorMoviuro <moviuro+grml@gmail.com>
Mon, 15 Sep 2014 10:11:26 +0000 (12:11 +0200)
committerFrank Terbeck <ft@grml.org>
Mon, 15 Sep 2014 10:24:13 +0000 (12:24 +0200)
commit287c3482e4fc7e8e8880aba60d7e0998cfc75558
treeb6fc51561a47f4a093a8e0dbc31ff61371d8ec88
parent0731b9ef086b033b52fafd94a27b7daad6942b4b
zshrc: rewrite battery function

Now supports multiple batteries
Now indicates status (^ Charging, v Discharging, = Full or Unknown)
Now supports different functions for different OSes

TODO: add configurability (zstyle, etc.)
TODO: add support for other OSes (ATM, only Linux is supported)
etc/zsh/zshrc