The Wayback Machine - https://web.archive.org/web/20201207102613/https://github.com/filipekiss/zemojify
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

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:emojify

Usage

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

About

ZSH port of the emojify command! Emoji on the command line! 🎉

Topics

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.