mrowa44 / emojify

Emoji on the command line :scream:
MIT License
1.55k stars 70 forks source link

This made me stupidly pleased this morning. #49

Open abeal-hottomali opened 5 years ago

abeal-hottomali commented 5 years ago

Bash prompt:

# File: ~/.profile

# Selects a random emoji for my terminal prompt using emojify.
RANDOM_EMOJI=$(emojify -l | shuf -n 1 | sed 's/:.*//' | sed 's/ //g')
export PS1='\W ${RANDOM_EMOJI} >'

Yields:

Last login: Tue Sep 10 07:28:33 on ttys002
~ 📠 >

In case you want to add it to your docs so that others can be as well. ;)

Thanks!