Skip to content

Instantly share code, notes, and snippets.

@adolfont
Created November 9, 2010 19:16
Show Gist options
  • Save adolfont/669624 to your computer and use it in GitHub Desktop.
Save adolfont/669624 to your computer and use it in GitHub Desktop.
my bashrc for git
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
source /etc/bash_completion.d/git
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] '
#export 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