Skip to content

Instantly share code, notes, and snippets.

View StabbyMcDuck's full-sized avatar

Regina StabbyMcDuck

  • Minneapolis, MN
View GitHub Profile
@jstuckey
jstuckey / Bash Prompt with Git and Emoji
Last active October 13, 2022 02:06
Bash Prompt with Git and Emoji - Add to ~/.bash_profile
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\]"