pyenv.pyenv-virtualenv/bin
jakelodwick 8546b11429 Cache hook state to skip redundant pyenv sh-activate calls
Mtime-based caching: stat the directory tree once per prompt (~2ms)
and skip full activation when nothing has changed.

- Compare PYENV_VERSION, VIRTUAL_ENV, PWD; shortcut when PYENV_VERSION matches
- Walk PWD to / for .python-version (stop at first; include broken symlinks)
- Path list built once on miss, stored as array (spaces in paths)
- Global version file skipped when local version active
- version-name hooks checked at init; if present, caching disabled
- Covers bash, zsh, and fish
2026-03-24 21:39:30 -06:00
..
pyenv-activate Fix confusing activate/deactivate error messages (#495) 2024-12-08 21:43:35 +03:00
pyenv-deactivate Fix confusing activate/deactivate error messages (#495) 2024-12-08 21:43:35 +03:00
pyenv-sh-activate Add prompt customization (#476) 2024-09-15 09:40:44 +03:00
pyenv-sh-deactivate Add fish prompt changing (#475) 2024-02-12 12:58:27 +03:00
pyenv-virtualenv 1.2.6 2025-12-14 18:41:47 +03:00
pyenv-virtualenv-delete Prevent loss of data on virtualenv-delete -f if the env doesn't exist and the PREFIX envvar is set elsewhere (#518) 2025-12-13 20:05:26 +03:00
pyenv-virtualenv-init Cache hook state to skip redundant pyenv sh-activate calls 2026-03-24 21:39:30 -06:00
pyenv-virtualenv-prefix Use realpath of scripts to determine relative locations (#308) 2022-10-14 04:37:08 +03:00
pyenv-virtualenvs Use realpath of scripts to determine relative locations (#308) 2022-10-14 04:37:08 +03:00