Skip to content

Instantly share code, notes, and snippets.

# other stuff here
# derivative of https://github.com/lojikil/dotfiles/blob/master/.bashrc#L33
# create virtualenv management functions
function venv-activate() {
# always activate a local venv if available
if [ -d "$(pwd)/venv" ]
then
echo "local virtualenv activated (venv)."
# ...but warn if a global venv by the given name exists