Skip to content

Instantly share code, notes, and snippets.

@inadarei
Created March 30, 2011 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inadarei/893838 to your computer and use it in GitHub Desktop.
Save inadarei/893838 to your computer and use it in GitHub Desktop.
bash_profile source
source $HOME/git-completion.sh
source $HOME/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=true
txtylw='\033[1;33m' # Yellow
fgcolor="\033[0m" # unsets color to term's fg color
twolevelprompt='$([ "$PWD" != "${PWD%/*/*/*}" ] && echo "/...${PWD##${PWD%/*/*}}" || echo "$PWD")'
gitprompt='$(__git_ps1 "[%s]")'
export PS1="\[$txtylw\] $twolevelprompt\[$fgcolor\]$gitprompt"'\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment