reinh / git_ps_tools

Shell tools to provide a sexy prompt

This URL has Read+Write access

name age message
file LICENSE Loading commit data...
file README
file git_br
file git_pwd
file 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$