Skip to content

Instantly share code, notes, and snippets.

@thiagocaiubi
Created June 10, 2011 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thiagocaiubi/1019431 to your computer and use it in GitHub Desktop.
Save thiagocaiubi/1019431 to your computer and use it in GitHub Desktop.
Mostra o nome do branch atual no console
PS1='\[\033[38m\]\u@\h\[\033[01;34m\] \w \[\033[31m\]`git branch 2> /dev/null | grep \* | head -1 | sed "s/\* //g" | awk "{ print \"(\" \\\$1 \")\" }"`\[\033[29m\]$\[\033[00m\] '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment