GithubHelp home page GithubHelp logo

emojify's Introduction

emojify

Emoji on the command line ๐Ÿ˜ฑ

THIS IS A VERY USEFUL SCRIPT. IT WILL ABSOLUTELY BOOST YOUR PRODUCTIVITY AND HELP YOU IN YOUR DAILY WORK.

๐Ÿ˜‰

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

Installation

emojify is a shell 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/mrowa44/emojify/master/emojify -o /usr/local/bin/emojify && chmod +x /usr/local/bin/emojify"

If you're on OS X, emojify is also on Homebrew:

$ brew install emojify

For Arch Linux users, a PKGBUILD is available in the AUR:

$ pacaur -S emojify

Since mrowa44/emojify#18 emojify requires bash version above 4. The old version can still be found here: https://github.com/mrowa44/emojify/tree/old_bash_support but it's not recommended.

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

and go from this dull thing:

before

to this:

after

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.

Contributing

The project can be tested using bats:

$ bats emojify_tests.bats

Shellcheck can be used for linting the shell script:

$ shellcheck --exclude=SC1117 emojify

Related

License

MIT

emojify's People

Contributors

jstnbr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.