Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
## Python
# Activate Python Virtualenv
activate_virtualenv() {
source ~/.venvs/$1/bin/activate
}
# Create new Python Virtualenv with a given name
create_virtualenv() {
/usr/bin/python3 -m venv ~/.venvs/$1
}
# Show all Virtualens available
show_venvs() {
ls $HOME/.venvs/
}
@dacavcosta
Copy link

dacavcosta commented Jan 14, 2018

Tks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment