Last active
August 29, 2015 14:01
-
-
Save mauriciopasquier/1b3b6f027d2bade5da86 to your computer and use it in GitHub Desktop.
Agregalo a tu .bashrc
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
gris='\[\033[01;30m\]' | |
amarillo='\[\033[01;33m\]' | |
cls='\[\033[00m\]' | |
is_git() { | |
git rev-parse --abbrev-ref HEAD 2>/dev/null | sed -e 's/^/± /' -e 's/$/ /' | |
} | |
PS1="${amarillo}\$(is_git)${gris}\u@\h \W\$ ${cls}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment