-
-
Save slimlime/4a5b0862e45bf388764f84f3d1b29a3d to your computer and use it in GitHub Desktop.
Bash Prompt with Git and Emoji - Add to ~/.bash_profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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