This is a goofy little hack that reads a list of emoji's from OSX's special characters panel (Edit -> Special Characters [opt+cmd+space] to open).
Inside the CharacterPalette.app
there is a sqlite database that has a ton of characters. I'm pulling a specific range which seems to have a large chunk of emojis. This is then spit out into an export
format that your shell can then source.
Disclaimer: You will probably never need this.
- Clone this repo somewhere
- Link the
emoji.sh
somewhere:ln -s emoji.sh $HOME
- In your ~/.bashrc add the following:
source $HOME/emoji.sh
- Make sure your terminal app can handle UTF-8 and all that jazz
You can then source ~/.bashrc
and now you're ready to rock!
To use an emoji in the terminal, simply echo
it out: echo $EMOJI_BEER_MUG w00t!
- Fork it
- 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