Created
March 24, 2023 16:09
-
-
Save maedoc/af5f3b536fe876ea83d131ba9b330a27 to your computer and use it in GitHub Desktop.
happy $PS1
This file contains hidden or 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
EMOJIS=(๐ ๐ฅฏ ๐ฆ ๐ฆ ๐ฅ ๐ฆ ๐ฆ ๐ ๐ฃ ๐ค ๐ฅ ๐ก ๐ฅ ๐ฅ ๐คฏ ๐คช ๐คฌ ๐คฎ ๐คซ ๐คญ ๐ง ๐ ๐ฆ ๐พ ๐ ๐ ๐ ๐ ๐ข) | |
function RANDOM_EMOJI() { | |
SELECTED_EMOJI=${EMOJIS[$RANDOM % ${#EMOJIS[@]}]}; | |
echo $SELECTED_EMOJI; | |
} | |
function EMJ() { | |
RANDOM_EMOJI | |
} | |
export PS1='\033[01;35m\]`date +%Hh%M` `EMJ` \033[01;34m\]\w\033[00m\] ' |
Author
maedoc
commented
Mar 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment