2013-02-06 11:44:04 +01:00
|
|
|
# -*- mode: sh; -*-
|
|
|
|
if [ "${#}" -eq 1 ]; then
|
2013-02-06 13:09:05 +01:00
|
|
|
local venv_activate="$HOME/.virtualenv/$1/bin/activate"
|
2013-02-06 11:44:04 +01:00
|
|
|
|
|
|
|
if [ -r "$venv_activate" ]; then
|
|
|
|
source $venv_activate
|
|
|
|
else
|
|
|
|
echo "$1 is not a know virtual environment"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "Virtual environments: "
|
|
|
|
for itm in ~/.virtualenv/*; do
|
|
|
|
echo " $(basename $itm)"
|
|
|
|
done
|
|
|
|
fi
|