robbyrussell/oh-my-zsh — pull request #2222 by jamesoff (2013-11-05 02:05:00+00:00)
Title: Prevent errors in prompts if no battery info available.

Define empty battery info functions instead of none at all if we can't figure out the platform. This means one .zshrc can be used on multiple machines even if not all of them have batteries.