The solution for who work with git. The code shown the current branch in terminal.
Example
vinicius@notebook: ~/Projects/git-solution (master) $
How to use
git clone git@github.com:viniciusalonso/git-solution.git
mv git-solution/.bashrc ~
source ~/.bashrc