Skip to content
/ emojiid Public

Deterministically assign an emoji to a user/machine pair. Stop wasting that space on $PS1!

Notifications You must be signed in to change notification settings

fgaz/emojiid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

EmojiId

Deterministically assign an emoji to a user/machine pair.

Stop wasting that space on $PS1!

screenshot

Usage

You can use it for example in your bashrc to change your prompt like this

emojiid="$(source ~/path/to/emojiid.sh)"
PS1="\u@${emojiid} \W \$ "

or even

PS1="${emojiid} \W \$ "

(I didn't put the emojiid.sh evaluation inside PS1 because PS1 is executed at every line, and that would be inefficient (md5, conversion, modulus...))

Configuration

You can change the randomnessource and emojisample variables

Terminal emulator support

Some terminal emulators fail to display the emoji in its full width (usually between 1 and 2 characters), sometimes causing weird behaviour, such as characters disappearing and misaligning or the emoji being cut off.

Let me know if you test it on a termina emulator that is not listed here!

Terminal emulator Support
sakura issues with alignment
lxterminal works
lilyterm works

About

Deterministically assign an emoji to a user/machine pair. Stop wasting that space on $PS1!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages