My improvements on the oh-my-zsh battery plugin