Record the battery log, and display the battery capacity on the graph.
brew tap motokii/batterygraph
brew install batterygraph
Clone the repository
git clone https://github.com/motokii/batterygraph.git
Make symbolic link to batterygraph in $path
ln -s $(pwd)/batterygraph/src/batterygraph ~/.local/bin/batterygraph
Make symbolic link to complation file in $fpath
ln -s $(pwd)/batterygraph/completion/_batterygraph /usr/local/share/zsh-completions/_batterygraph
Load to launchd (logged every ten minutes)
batterygraph load
Log the current battery status
batterygraph write
View battery graph
batterygraph show
Unload from launchd (Stop logging)
batterygraph unload
View the status at launchd
batterygraph status
To be terminated beforehand
batterygraph unload
Delete symbolic link to batterygraph
unlink ~/.local/bin/batterygraph
Delete symbolic link to completion file
unlink /usr/local/share/zsh-completions/_batterygraph
Delete the repository
cd <the directory when clone>
rm -rf batterygraph