Skip to content

Instantly share code, notes, and snippets.

@maedoc
Created March 24, 2023 16:09
Show Gist options
  • Save maedoc/af5f3b536fe876ea83d131ba9b330a27 to your computer and use it in GitHub Desktop.
Save maedoc/af5f3b536fe876ea83d131ba9b330a27 to your computer and use it in GitHub Desktop.
happy $PS1
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\] '
@maedoc
Copy link
Author

maedoc commented Mar 24, 2023

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment