Deterministically assign an emoji to a user/machine pair. Stop wasting that space on $PS1!
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
emojiid.sh
screenshot.png

README.md

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