Skip to content

Instantly share code, notes, and snippets.

@mauriciopasquier
Last active August 29, 2015 14:01
Show Gist options
  • Save mauriciopasquier/1b3b6f027d2bade5da86 to your computer and use it in GitHub Desktop.
Save mauriciopasquier/1b3b6f027d2bade5da86 to your computer and use it in GitHub Desktop.
Agregalo a tu .bashrc
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