1.0.0 ā€¢ Published 8 years ago

contrib-rocket v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
8 years ago

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