Created
February 27, 2012 23:18
-
-
Save davidrobert/1927854 to your computer and use it in GitHub Desktop.
GIT + .bash_profile" (ou ".bashrc")
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
# Fonte: http://vidageek.net/2009/07/20/como-exibir-branch-atual-do-git/ | |
export PS1="\[\033[38m\]\u\[\033[32m\] \w \[\033[31m\]\`git \\ | |
branch 2>/dev/null | grep \"^\*\" | \\ | |
sed -r \"s/\*\ (.*)/ \(\1\)/\"\`\[\033[37m\]$\[\033[00m\] " | |
## Mac version: | |
# | |
#PS1="\[\033[38m\]\u"; | |
#PS1="$PS1\[\033[32m\] \w"; | |
#PS1="$PS1\[\033[31m\]"; | |
#PS1="$PS1\`git branch 2>/dev/null | grep \"^\*\" | \\ | |
# sed 's/\*\ \(.*\)/ (\1)/'\`" | |
#export PS1="$PS1\[\033[37m\]$\[\033[00m\]"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment