Created
April 27, 2015 16:23
-
-
Save senhorinha/aa9024247c9b23b37e87 to your computer and use it in GitHub Desktop.
git-bash
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
# Configurações do Git | |
function git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
# Cores http://www.arwin.net/tech/bash.php | |
RED="\[\033[0;31m\]" | |
BROWN="\[\033[0;33m\]" | |
YELLOW="\[\033[1;33m\]" | |
GREEN="\[\033[0;32m\]" | |
BLUE="\[\033[0;34m\]" | |
WHITE="\[\033[1;37m\]" | |
NO_COLOR="\[\033[0m\]" | |
red=`tput setaf 1` | |
green=`tput setaf 2` | |
reset=`tput sgr0` | |
PS1="$RED\w$BROWN\$(git_branch) $NO_COLOR $ " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment