mirror of
https://github.com/kennethreitz-archive/python-build.git
synced 2026-06-05 23:30:18 +00:00
21 lines
386 B
Bash
21 lines
386 B
Bash
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
|
|
}
|