Created
January 16, 2018 01:36
-
-
Save jkutner/68b7797194ec356a0f86e5c4445f46e7 to your computer and use it in GitHub Desktop.
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
BLACK="\[\033[0;38m\]" | |
RED="\[\033[0;31m\]" | |
RED_BOLD="\[\033[01;31m\]" | |
BLUE="\[\033[1;34m\]" | |
GREEN="\[\033[0;32m\]" | |
WHITE="\[\033[0;37m\]" | |
PURPLE="\[\033[0;35m\]" | |
export PS1="$WHITE[$BLUE\w$WHITE]$GREEN\$HEROKU_CLOUD$RED\$(git name-rev HEAD 2> /dev/null | sed 's#HEAD\ \(.*\)# (git::\1)#')$PURPLE\$(git remote get-url heroku 2> /dev/null | sed 's/https:\/\/git.heroku.com\/\(.*\).git/ (\1)/')$BLACK\n$ \[\e[0m\]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment