Last active
July 25, 2023 13:10
-
-
Save thedevelobear/082fb842fbcd2160d77b4961d4f819db to your computer and use it in GitHub Desktop.
ZSH Rainbow - a function that turns your username in zsh to a random emoji. Paste it in .zshrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prompt_context() { | |
# Custom (Random emoji) | |
emojis=("β‘οΈ" "π₯" "π" "π" "π" "πΈ" "π΅" "π¦" "π" "π»" "π" "π‘" "π" "π" "πΉπ" "π¦" "π") | |
RAND_EMOJI_N=$(( $RANDOM % ${#emojis[@]} + 1)) | |
prompt_segment black default "${emojis[$RAND_EMOJI_N]} " | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment