Skip to content

psobot/battery-emoji

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

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

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published