Last active
December 27, 2015 15:19
-
-
Save wilsonpage/7347087 to your computer and use it in GitHub Desktop.
Shell prompt with current Git branch. Add this code to a `.profile` file in your home directory for a more useful terminal prompt. You must have bash-completion installed: `$ brew install bash-completion`
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
function prom { | |
local GREEN="\[\033[0;32m\]" | |
local WHITE="\[\033[0m\]" | |
PS1="\w$GREEN\$(__git_ps1)$WHITE \$ " | |
} | |
prom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment