Skip to content

Instantly share code, notes, and snippets.

@mccv
Created September 21, 2017 05:46
Show Gist options
  • Save mccv/018d6c239a51f739c44c96047d1a4789 to your computer and use it in GitHub Desktop.
Save mccv/018d6c239a51f739c44c96047d1a4789 to your computer and use it in GitHub Desktop.
Emoji PS1
git_branch='`git rev-parse --abbrev-ref HEAD 2> /dev/null | sed s/^/\ \|\ /`'
emojis=(๐Ÿถ ๐Ÿบ ๐Ÿฑ ๐Ÿญ ๐Ÿน ๐Ÿฐ ๐Ÿธ ๐Ÿฏ ๐Ÿจ ๐Ÿป ๐Ÿท ๐Ÿฎ ๐Ÿต ๐Ÿผ ๐Ÿง ๐Ÿ ๐Ÿข ๐Ÿ™ ๐Ÿ  ๐Ÿณ ๐Ÿฌ ๐Ÿฅ)
emoji='`echo ${emojis[$RANDOM % 22]}`'
PS1="\[\033[0;36m\]\T | \W$git_branch | $emoji > \[\e[0m\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment