by isbadawi · 12y ago · 0 comments
function mkvirtualenv {
virtualenv "$HOME/.virtualenvs/$1"
if [ $# -eq 2 ]; then
vex "$1" pip install -r "$2"
fi
}
function lsvirtualenv {
ls "$HOME/.virtualenvs"
}
function rmvirtualenv {
rm -rf "$HOME/.virtualenvs/$1"
}Probably good to do some error checking on the arguments to mkvirtualenv and rmvirtualenv (sleepily hitting enter too early, etc.)