Skip to content

Instantly share code, notes, and snippets.

@BrunoCodeman
Last active August 16, 2018 18:55
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 BrunoCodeman/0140b3008cee3a79a63099afd2695c77 to your computer and use it in GitHub Desktop.
Save BrunoCodeman/0140b3008cee3a79a63099afd2695c77 to your computer and use it in GitHub Desktop.
#!/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

Tks!

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