Forked from jstuckey/Bash Prompt with Git and Emoji
Created
February 9, 2017 10:30
-
-
Save GuyHarwood/fc737876cce98d307499c2d6e881d8b0 to your computer and use it in GitHub Desktop.
Bash Prompt with Git and Emoji - Add to ~/.bash_profile
This file contains 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