Skip to content

Instantly share code, notes, and snippets.

@bboc
bboc / venv_wrapper
Last active February 5, 2021 12:40 — forked from dbtek/venv_wrapper
Python 3 venv wrapper. Manages all virtual environments under ~/.venv/ .
# include following in .bashrc / .bash_profile / .zshrc
# usage
# $ mkvenv myvirtualenv # creates venv under ~/.venv/
# $ venv myvirtualenv # activates venv
# $ deactivate # deactivates venv
# $ rmvenv myvirtualenv # removes venv
#
# From: https://gist.github.com/dbtek/fb2ddccb18f0cf63a654ea2cc94c8f19
export VENV_HOME="$HOME/dev/.venv"