Skip to content

Commit

Permalink
add emoji to my prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Dec 29, 2021
1 parent f81d4f4 commit b8119ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dotfiles/zsh/default.nix
Expand Up @@ -38,7 +38,12 @@ in {
setopt PROMPT_SUBST
PROMPT="%(?..[%F{red}%?%f] )%B%F{blue}%c%f%b %F{blue}»%f "
EMOJI_NEUTRAL=(😃 🤓 👾 🤖 💯 🐵 🦍 🐺 🐈 🦄 🦅 🦉 🐬 🐋 🐙 🌲 🌳 🍀 🍁 🍇 🍍 🍩 🌍 🌎 🌏 🚄 🚍 🚲 🛴 🚡 🚠 🚀)
EMOJI_UNHAPPY=(😵 😲 🤡 👹 😿 💔 💢)
EMOJI_PROMPT="''${EMOJI_NEUTRAL[$RANDOM % ''${#EMOJI_NEUTRAL[@]}]}"
EMOJI_PROMPT_ERROR="''${EMOJI_UNHAPPY[$RANDOM % ''${#EMOJI_UNHAPPY[@]}]}"
PROMPT="%(?.$EMOJI_PROMPT .$EMOJI_PROMPT_ERROR [%F{red}%?%f] )%B%F{blue}%c%f%b %F{blue}»%f "
RPROMPT=
# this is just a work thing, and temporary until we permanently enable a new
Expand Down

0 comments on commit b8119ee

Please sign in to comment.