Skip to content

Instantly share code, notes, and snippets.

View GarrettMooney's full-sized avatar

Garrett Mooney GarrettMooney

View GitHub Profile
@GarrettMooney
GarrettMooney / venv.zsh
Last active November 12, 2020 18:16 — forked from ines/.zshrc
Command to activate / create Python virtual environmment
# venv
# usage:
# $ venv .recsys
function venv {
default_envdir=".env"
envdir=${1:-$default_envdir}
if [ ! -d $envdir ]; then
python3.7 -m virtualenv -p python3.7 $envdir
echo -e "\x1b[38;5;2m✔ Created virtualenv $envdir\x1b[0m"