Skip to content

Instantly share code, notes, and snippets.

@Esonhugh
Last active April 5, 2023 12:51
Show Gist options
  • Save Esonhugh/7ed0b9307acdb712bff0ce0371085cf6 to your computer and use it in GitHub Desktop.
Save Esonhugh/7ed0b9307acdb712bff0ce0371085cf6 to your computer and use it in GitHub Desktop.
active python venv
#!/usr/bin/env $SHELL
# Author: Esonhugh
# Date: 2023/04/05
function pyactive () {
if [ -d "./venv/" ]
then
source "./venv/bin/activate"
else
echo "No Python venv there. Error"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment