Skip to content

Instantly share code, notes, and snippets.

@tomotaka
Created September 10, 2019 09:41
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 tomotaka/96eca3bab287ae0c5e2b7c0d7bf6e068 to your computer and use it in GitHub Desktop.
Save tomotaka/96eca3bab287ae0c5e2b7c0d7bf6e068 to your computer and use it in GitHub Desktop.
# This command helps you to create pyenv virtualenv and activate that after creation.
# NOTE: I checked this works on zsh
vec() {
PWD=`pwd`
DNAME=`basename $PWD`
pyenv virtualenv 3.7.3 $DNAME
pyenv local $DNAME
}
@tomotaka
Copy link
Author

I put this function in my ~/.zshrc

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