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
  • 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