Created
February 4, 2023 18:23
-
-
Save tom-flamelit/4bc02856383b848a0e43712f7415bd55 to your computer and use it in GitHub Desktop.
Bash function `pv` to launch my common virtual environments
This file contains 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 pv { source "$HOME"/work/venv/"$1"/bin/activate; echo "$1 activated"; } | |
# To work for your setup: first have a common venv directory, then adapt the above to run | |
# To run, you type into shell `$ pv my_cool_venv_name` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment