Converts emoji aliases into emoji. Useful for emojifying git log
output and the like.
You'll need Ruby. I would've preferred the script to be in Bash but I couldn't figure out how to use sed
to dynamically replace the aliases. If you have a way to do it I'd love a pull request.
Emojify might be too niche to make it into the main homebrew repo, but you can easily get it from my personal tap.
brew tap brandonweiss/homebrew-tap
brew install emojify
The emojify
script is self-contained. Just put it somewhere that's in your $PATH
.
echo ":fish: + :hocho: = :sushi:" | emojify
🐟 + 🔪 = 🍣
emojify where_does_sushi_come_from.txt
🐟 + 🔪 = 🍣
# .gitconfig
[alias]
logmoji = !git log | emojify | less -r
I wanted the script to be as portable as possible so it has to be "built".
bundle install
rake build
It uses gemoji as a data source and embeds a mapping of each emoji alias to emoji character in the script.
- Fork it ( http://github.com/brandonweiss/emojify/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am "Add some feature"
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request