contrib-rocket

1.0.0 • Public • Published

contrib-rocket header

contrib-rocket is the awesome idea of combining GitHub Contributions, spark and a rocket emoji - it's like if your contributions were fueling the rocket, getting you one 'thrust' closer to the moon! 🌚

Strictly speaking, contrib-rocket is a minimal shell script that glues gh-contribs and spark together. It basically saves you writing a few characters, but it makes it feel more exciting.

Install

Via npm

npm i -g contrib-rocket

Else

This one liner should place contrib-rocket in your $PATH:

sudo sh -c "curl https://raw.githubusercontent.com/dasilvacontin/contrib-rocket/master/contrib-rocket.sh -o /usr/local/bin/contrib-rocket && chmod +x /usr/local/bin/contrib-rocket"

Dependencies

You'll need gh-contribs and spark in your $PATH. However, they will be installed for you the first time you execute or source contrib-rocket – nice!

Usage

contrib-rocket forwards its arguments to gh-contribs, so you should check the latter's README.

$ contrib-rocket -d 7
▅▁▃▃█▁▁🚀
 
$ contrib-rocket -d 14
▁▁▁▂▁▁▂▅▁▃▃█▁▁🚀

Usage example in tmux status bar

tmux example screenshot

In your .tmux.conf:

set -g status-right-length 60
set -g status-right "#(contrib-rocket -d 14) :: #(battery -t) #[fg=blue]:: %d %b %Y #[fg=cyan]::%l:%M %p "
set -g status-interval 30

License

MIT © David da Silva

/contrib-rocket/

    Package Sidebar

    Install

    npm i contrib-rocket

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • dasilvacontin