Skip to content

Instantly share code, notes, and snippets.

@alf808
alf808 / activate
Created July 29, 2020 04:44 — forked from martin-martin/activate
Example activate script for a Python Virtual Environment
# This file must be used with "source bin/activate" *from bash*
# you cannot run it directly
deactivate () {
# reset old environment variables
if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
PATH="${_OLD_VIRTUAL_PATH:-}"
export PATH
unset _OLD_VIRTUAL_PATH
fi