Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 386 Bytes

File metadata and controls

22 lines (14 loc) · 386 Bytes

.bashrc Templates

.bashrc setup

function create_python_env() {
    if [ -d .venv ]; then
        echo ".venv directory exists";
    else
        echo ".venv does not exists -- creating ...";
        echo PIPENV_VENV_IN_PROJECT=1 >> .env;pipenv install --python=$(which python);
    fi
}

alias PYTHON_ENV=create_python_env