Skip to content

Instantly share code, notes, and snippets.

@comtom
Forked from haridas/virtualenv_alias.sh
Created October 13, 2017 14:13
Show Gist options
  • Save comtom/25ea08fd40aa0d00f9591338562c1257 to your computer and use it in GitHub Desktop.
Save comtom/25ea08fd40aa0d00f9591338562c1257 to your computer and use it in GitHub Desktop.
A Simple bash alias for python virtualenv. :)
# Python virtual env alias
alias activate='test -d ENV && source ./ENV/bin/activate || echo "No Virtualenv in the current folder"'
alias mkenv='test -d ENV && echo "Already exists" || virtualenv --system-site-packages ENV; activate'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment