venv.sh

#! /bin/bash function usage() { cat <<EOF Desc: virtualenv management tool Usage: linux command alias venv Options: [-h|--help] : show this help [run] : same as virtualenv source [create] : same as virtualenv newvenv [exit] : exit current venv [list] : show all venv EOF } venvdir='/mnt/venv' case "$1" in -h|--help) usage ;; create) virtualenv $venvdir/$2 ${@:3} ;; run) source $venvdir/$2/bin/activate ;; exit) deactivate ;; list) ls $venvdir ;; esac

vim ~/.bashrc

Alias venv=’source/MNT /script/venv.sh’ source ~/.bashrc

use

If you want to create a virtual environment, you can create a list of all the virtual environments in the world