Last active
February 28, 2021 19:42
-
-
Save ines/c00535e6ac294750ddba95fd24a77db5 to your computer and use it in GitHub Desktop.
Revisions
-
ines revised this gist
Nov 10, 2020 . 1 changed file with 11 additions and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,14 @@ function venv { default_envdir=".env" envdir=${1:-$default_envdir} if [ ! -d $envdir ]; then python -m venv $envdir pip install ipython black flake8 echo -e "\x1b[38;5;2m✔ Created virtualenv $envdir\x1b[0m" fi source $envdir/bin/activate export PYTHONPATH=`pwd` echo -e "\x1b[38;5;2m✔ Activated virtualenv $envdir\x1b[0m" python --version } -
ines created this gist
Nov 25, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ function venv { if [ ! -d ".env" ]; then python -m venv .env echo -e "\x1b[38;5;2m✔ Created virtualenv .env\x1b[0m" fi source .env/bin/activate export PYTHONPATH=`pwd` echo -e "\x1b[38;5;2m✔ Activated virtualenv .env\x1b[0m" } alias venv="venv"