Created
June 6, 2019 17:14
-
-
Save daninfpj/a292f2b5e23e38b48a176914ba8a0b9a to your computer and use it in GitHub Desktop.
venv auto activate
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
function cd { | |
builtin cd "$@" | |
if [ -d ".venv" ] ; then | |
source .venv/bin/activate | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment