zemojify
Emoji on the command line 😱 - The ZSH Version
This is a ZSH version of the excellent emojify by Justyna Rachowicz. Thanks Justyna!
I came across this issue on the original repository and, even though a port to
ZSH wasn't needed, I thought "why not?
Advantages over the original script
ZSH, albeit less common, is a shell more powerful than BASH. Since I've ported
it, I also took time to solve some issues I had with the emojify script, mainly
the fact that it relied on $IFS to make the substitution and ZSH has a nice
regex-replace function that works much better in this case, so issues like
this shouldn't happen.
Installation
Just add zemojify to your $PATH and you're good to go.
Zplug
If you use Zplug, you can add zemojify with the following:
zplug filipekiss/zemojify, as:"command"If you wanna replace emojify
zplug filipekiss/zemojify, as:"command", rename-to:emojifyUsage
If you use emojify, zemojify is a drop-in replacement. (In fact, you can
even name it emojify and it will work as expected.)
Replace in string
zemojify "Welcome to Narnia! :lion_face:
Output: Welcome to Narnia! :lion_face:
Pipe-in
git log --color | zemojify | less
Using in all pagers
Add this to your .zshrc
(( $+commands[zemojify]] )) && export PAGER="zemojify | ${PAGER}"
Related
License
MIT

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
