04f9241cebeab206ca0018275d3b61a4100caf41

Author
Michael Aquilina <michaelaquilina@gmail.com>
Committer
Michael Aquilina <michaelaquilina@gmail.com>
Date

Message

Add note about slow speed of switching with pipenv

Diff

 1diff --git a/autoswitch_virtualenv.plugin.zsh b/autoswitch_virtualenv.plugin.zsh
 2index 7b68ca73e3850ea5e2430a18e8fc5688cd375c86..116b303fe0dd6c6df54e113f4ac75fc73b788619 100644
 3--- a/autoswitch_virtualenv.plugin.zsh
 4+++ b/autoswitch_virtualenv.plugin.zsh
 5@@ -156,6 +156,7 @@ function check_venv()
 6     local pipfile_path="$(_check_path "$PWD" "Pipfile")"
 7 
 8     if [[ -n "$pipfile_path" ]] && type "pipenv" > /dev/null; then
 9+        # unfortunately running pipenv each time we are in a pipenv project directory is slow :(
10         if venv_path="$(PIPENV_IGNORE_VIRTUALENVS=1 pipenv --venv 2>/dev/null)"; then
11             _maybeworkon "$venv_path" "pipenv"
12             return