Skip to content

Instantly share code, notes, and snippets.

@tom-flamelit
Created February 4, 2023 18:23
Show Gist options
  • Save tom-flamelit/4bc02856383b848a0e43712f7415bd55 to your computer and use it in GitHub Desktop.
Save tom-flamelit/4bc02856383b848a0e43712f7415bd55 to your computer and use it in GitHub Desktop.
Bash function `pv` to launch my common virtual environments
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