Created
September 10, 2019 09:41
-
-
Save tomotaka/96eca3bab287ae0c5e2b7c0d7bf6e068 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I put this function in my
~/.zshrc