Skip to content

Instantly share code, notes, and snippets.

@progressify
Forked from haridas/virtualenv_alias.sh
Last active April 13, 2020 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save progressify/13ed04fc7f05da731aea403a94849a78 to your computer and use it in GitHub Desktop.
Save progressify/13ed04fc7f05da731aea403a94849a78 to your computer and use it in GitHub Desktop.
A Simple bash alias for python virtualenv. :)
# Python virtual env alias
alias mkenv='test -d myvenv && echo "Already exists" || python3 -m virtualenv -p python3 myvenv; activatenv'
alias activatenv='test -d myvenv && source ./myvenv/bin/activate || echo "No Virtualenv in the current folder"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment