Skip to content

Instantly share code, notes, and snippets.

View yensei's full-sized avatar
😀

Julio C. Muñoz yensei

😀
View GitHub Profile
@sheldonh
sheldonh / .bashrc
Created April 15, 2015 09:38
bash git prompt on Fedora
if ! type __git_ps1 &> /dev/null && [ -e /usr/share/git-core/contrib/completion/git-prompt.sh ]; then
. /usr/share/git-core/contrib/completion/git-prompt.sh
fi
if type __git_ps1 &> /dev/null; then
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
export GIT_PS1_SHOWCOLORHINTS=1
export PROMPT_DIRTRIM=2
export PROMPT_COMMAND='__git_ps1 "\w" "\\\$ "'
fi