Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Work Mode On

Yasith Jayawardana yasithmilinda

👨‍💻
Work Mode On
View GitHub Profile
@yasithmilinda
yasithmilinda / venv.sh
Last active Jun 26, 2021
venv | helper
View venv.sh
venv() {
USAGE_INFO="Usage: venv [ -h | create [ ENV_NAME [ --overwrite ] ] | delete | activate | list | update ]"
DIR_ALREADY_EXISTS="A virtual environment / directory already exists with that name. Use --overwrite flag to overwrite it."
NOT_IN_VENV="This command is only allowed in a virtual environment."
VENV_DIR_NOT_SET="VENV_DIR environment variable is not set."
VENV_PYVER_NOT_SET="VENV_PYVER environment variable is not set."
VENV_CREATED="Virtual environment created"
VENV_DELETED="Virtual environment deleted"