Skip to content

Instantly share code, notes, and snippets.

@arodu
Last active August 21, 2016 16:56
Show Gist options
  • Save arodu/f1eb8756ae50d77f0f11 to your computer and use it in GitHub Desktop.
Save arodu/f1eb8756ae50d77f0f11 to your computer and use it in GitHub Desktop.
Consola bash con soporte para git, en colores y en blanco, agregar este codigo al final del archivo ~/.bashrc
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
. /usr/share/git/completion/git-completion.bash
. /usr/share/git/completion/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\[\033[01;37m\]$(__git_ps1 "(%s)")\[\033[01;32m\]\$\[\033[00m\] '
#PS1='\u@\h \W $(__git_ps1 " (%s)")\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment