Skip to content

Instantly share code, notes, and snippets.

@grundic
Created August 19, 2017 22:21
Show Gist options
  • Save grundic/e9aca0fb0c7d53840f707fd1a5f0ba58 to your computer and use it in GitHub Desktop.
Save grundic/e9aca0fb0c7d53840f707fd1a5f0ba58 to your computer and use it in GitHub Desktop.
# This snippet with randomly select one emoji and put it to the beginning of your PS1.
# Just add it to your .bashrc and you'll get new prompt each time!
emojies=(๐Ÿ˜Ž ๐Ÿ‘ป โ›‘ ๐Ÿถ ๐ŸŒˆ ๐ŸŽ ๐Ÿ’ฉ)
random_emoji=${emojies[$RANDOM % ${#emojies[@]} ]}
export PS1="$random_emoji \[\033[38;5;33m\]\u\[$(tput sgr0)\]\[\033[38;5;208m\]@\[$(tput sgr0)\]\[\033[38;5;32m\]\A\[$(tput sgr0)\]\[\033[38;5;208m\]:\[$(tput sgr0)\]\[\033[38;5;33m\][\[$(tput sgr0)\]\[\033[38;5;36m\]\w\[$(tput sgr0)\]\[\033[38;5;33m\]]\\$\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment