Skip to content

Instantly share code, notes, and snippets.

@jkutner
Created January 16, 2018 01:36
Show Gist options
  • Save jkutner/68b7797194ec356a0f86e5c4445f46e7 to your computer and use it in GitHub Desktop.
Save jkutner/68b7797194ec356a0f86e5c4445f46e7 to your computer and use it in GitHub Desktop.
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