Skip to content

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

License

Notifications You must be signed in to change notification settings

psobot/battery-emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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