Skip to content

Instantly share code, notes, and snippets.

@seattlesuekim
Created June 6, 2017 21:26
Show Gist options
  • Save seattlesuekim/a54b025397627ab385cf5f61a3303618 to your computer and use it in GitHub Desktop.
Save seattlesuekim/a54b025397627ab385cf5f61a3303618 to your computer and use it in GitHub Desktop.
Glam up your bash_profile PS1
emojis=(πŸ’– πŸ’š πŸ’™ 🍭 🌈 πŸ’› πŸ’˜ πŸ’— πŸ’• πŸ’œ πŸ’Ÿ πŸ’Œ πŸ’‹ )
emoji='`[[ $? -eq 0 ]] && echo ${emojis[$RANDOM % 13]} || echo X`'
PS1="\n\[\033[38;5;51m\] \t | \[\033[38;5;157m\]\u@\h\\[\033[38;5;51m\] | \W | $emoji | \$ \[\e[0;37m\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment