How can I make my shell prompt look like a cheeseburger?
great choice!
$ sudo apt-get install ttf-ancient-fonts
$ export PS1="\\u@\h \\w 🍔 "
enjoy.
Putting a cheeseburger on the prompt:
-
Install a unicode font that contains this character:
sudo apt-get install ttf-ancient-fonts
-
Try the prompt:
export PS1="\\u@\h \\w 🍔 "
-
Make permanent the change (if you don't do that, it will reset once terminal is closed):
- Run
nano .bashrc
- Go to the 59th line approx. (You can view the current line number pressing Ctrl+C)
-
Locate these lines:
if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi
-
Replace
\$
character a the end of the lines beginning withPS1=
by the cheeseburger:if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] 🍔 ' else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\ 🍔 ' fi
- Run
Typing a cheeseburger everywhere (linux only):
- Press Ctrl+Shift+U
- A underlined lowercase
u
will appear. - Type 1f354
- Press Return
- A nice cheeseburger will appear.
I couldn't help but take this probably a step too far. This version updates your prompt to display a different character based on time of day, to illustrate what you should be doing at that time.
declare -A pp
pp=(["09"]="🍩🍵" ["07"]="🌅" ["08"]="🌅" [10]="💻" [11]="💻" [12]="🍔🍟" [13]="🍔🍟" [14]="💻" [15]="💻" [16]="💻" [17]="🚗" [18]="🚗" [19]="🍷🍸" [20]="🍷🍸" [24]="🌙")
u_pp() {
c=${pp[`date +"%H"`]}
if [[ $c == "" ]]; then
c=${pp[24]}
fi
PS1='\u@\h:\w${c} '
};
u_pp
export PROMPT_COMMAND="u_pp;"
Probably there's a more concise way to do it; my bash isn't all that great.
To add the current time of day on the left side, replace the assignment of PS1
:
PS1='[\@] \u@\h:\w${c} '
If you can't install the 'ancient fonts' maybe a sideways ASCII art cheeseburger would work?
export PS1="\\u@\h \\w (||]"
Of course, there could be different ways of typing this, possibly including lettuce, pickles, etc.