Shell tools to provide a sexy prompt
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README
git_br
git_pwd
git_repo

README

Tools to provide git repo recognition to bash for prompts, for example:

export PS1="\u\$(git_br):\$(git_pwd)\$ "

gives a prompt like:

reinh(master):git_ps_tools$

although I like pretty colors:

export PS1="\[\033[01;32m\]\u\[\033[00m\]\[\033[01;31m\]\$(git_br)\[\033[01;32m\]\[\033[00m\]:\[\033[01;36m\]\$(git_pwd)\[\033[00m\]\$ "

== Examples:

reinhenrichs(master):rubinius$ cd kernel
reinhenrichs(master):rubinius/kernel$ cd common
reinhenrichs(master):rubinius/kernel/common$ cd ..
reinhenrichs(master):rubinius/kernel$ git checkout HEAD^
reinhenrichs(master~1):rubinius/kernel$ 
reinhenrichs(master~1):rubinius/kernel$ git checkout master
reinhenrichs(master):rubinius/kernel$ cd ..
reinhenrichs(master):rubinius$ cd ..
reinhenrichs:/Users/reinhenrichs/code/opensource$