Using Linux on various machines, I wanted to have something that helped me to identify on which machine I am currently working. The usual bash prompt settings in PS1 indicate this, but I needed to read the text. I wanted something more intuitive. Searching for a solution I found that modern bash is capable of using unicode. So I found my solution.

To get to the needed unicode I used the Emojipedia. There I selected to use 🍓 for a Raspberry Pi device and 🪟 for a Windows Subsystem Linux installation.

To get the icon into the prompt I just copied the unicode character and pasted it into the PS1 prompt in the ~/.bashrc file.

Example:

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] 🪟:\[\033[01;34m\]\w\[\033[00m\]\$ '