added some function to bashrc. fixed issue 2.

This commit is contained in:
utahta
2010-11-20 07:38:22 +09:00
parent 0bc17f56db
commit 0605c27c57
12 changed files with 107 additions and 33 deletions
+20
View File
@@ -0,0 +1,20 @@
PYTHONBREW_ROOT="@ROOT@"
PYTHONBREW_ETC="$PYTHONBREW_ROOT/etc"
export PATH=$PYTHONBREW_ROOT/bin:$PYTHONBREW_ROOT/pythons/current/bin:${PATH}
__pythonbrew_reload()
{
if [[ -s "$PYTHONBREW_ETC/bashrc" ]] ; then
source "$PYTHONBREW_ETC/bashrc"
fi
}
pythonbrew()
{
command pythonbrew "$@"
case $1 in
update) __pythonbrew_reload ;;
esac
hash -r
}