Heziode / emojify

Emoji on the command line :tada:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Emojify

Binding of emojify (bash version) to fix issues (unnecessary space, punctuation chars, etc.)

This script is based on emojione emoji.

Emoji on the command line:tada:

Basically, emojify substitutes emoji aliases that many services (like GitHub) use for emoji raw characters.

Installation

emojify is a perl script, so put it somewhere and make sure it's added to your $PATH.

Here's a one-liner:

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

Usage

Here's a clever example:

emojify "Hey, I just :raising_hand: you, and this is :scream: , but here's my :calling: , so :telephone_receiver: me, maybe?"

would output:

Hey, I just πŸ™‹ you, and this is 😱 , but here's my πŸ“² , so πŸ“ž me, maybe?

Or maybe:

emojify "To :bee: , or not to :bee: : that is the question... To take :muscle: against a :ocean: of troubles, and by opposing, end them?"

To 🐝 , or not to 🐝 : that is the question... To take πŸ’ͺ against a 🌊 of troubles, and by opposing, end them?

Or you could run it through git log with something like:

git log --oneline --color | emojify | less -r

To have an alias that does that for you, add something like:

log = ! git log --oneline --color | emojify | less -r

to your ~/.gitconfig.

Note: if you want colors you need to specify the --color option.

To invoke help run emojify -h.

Related

Changelog

See CHANGELOG.md

License

MIT

About

Emoji on the command line :tada:

License:MIT License


Languages

Language:Perl 99.6%Language:JavaScript 0.4%