Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

battery-emoji

A tiny Go program that outputs your Macbook's battery state as emoji. For your shell prompt.

what it looks like

Installation

Make sure you have Go installed (brew install go), then:

make

It's that easy. Try it out with ./battery-emoji.

To add it to your zsh theme, do something like:

function battery_charge {
    echo `~/dotfiles/batcharge` 2>/dev/null
}

RPROMPT='$(battery_charge)'

About

A tiny Go program that outputs your Macbook's battery state as emoji. For your shell prompt.

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.