1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 05:40:08 +00:00
Commit graph

28 commits

Author SHA1 Message Date
Carlo Sala
5c532a85cf
fix(pyenv)!: do not load if a virtualenv is present
BREAKING CHANGE: `pyenv` will not be loaded at startup anymore if a
virtual env if found to avoid overwriting the expected python version.

Closes #12589
2024-08-01 20:12:16 +02:00
guangwu
6780b19329
docs(pyenv): fix typo (#12283) 2024-03-14 17:37:06 +07:00
Joe
7a030f6bd6
docs(pyenv): warn about pyenv init (#11692) 2023-05-15 15:27:31 +02:00
Isaac Levy
b70977b256
perf(pyenv): do not check if it's disabled (#11338) 2022-11-14 17:36:19 +01:00
Carlo Sala
0818df057c
fix: use python3 for all python invocations (#10832) 2022-04-09 14:45:42 +02:00
Marc Cornellà
42afa6e2ea
fix(pyenv): quote % in pyenv_prompt_info 2022-01-03 13:50:51 +01:00
Kaede Hoshikawa
c6c364317d fix(pyenv): fix pyenv-virtualenv detection under macOS. 2021-10-04 10:33:27 +02:00
Terry
19710a2d17
fix(pyenv): do not warn if PYENV_ROOT is undefined (#10162)
Co-authored-by: Terry Moschou <terry.moschou@fivecast.com>
2021-09-06 10:32:19 +02:00
Marc Cornellà
1b03896a0e
feat(pyenv): don't load pyenv-virtualenv with ZSH_PYENV_VIRTUALENV=false
Closes #9443

Co-authored-by: Pandu POLUAN <pepoluan@gmail.com>
2021-09-03 12:57:13 +02:00
Marc Cornellà
823be4ef5f
feat(pyenv): silence bad config warning with ZSH_PYENV_QUIET=true 2021-09-03 12:54:45 +02:00
Marc Cornellà
c08fb77c2f
fix(pyenv): properly load pyenv shims and warn of broken configuration
Closes #10133

Co-authored-by: Chloé “Matcha” <chloe.desoutter@gmail.com>
2021-09-03 12:47:31 +02:00
Marc Cornellà
b85e1dd5d6
fix(pyenv): fix for checking if pyenv-virtualenv is installed
Fixes #8467
2021-08-18 11:51:19 +02:00
Marc Cornellà
10f3e0d4d4
docs(pyenv): document necessity to logout after PATH settings 2021-08-18 11:43:29 +02:00
Marc Cornellà
5377cc37c0
fix(pyenv): fix for ignoring pyenv-win commands
The previous fix ignored any pyenv command found in $PATH while on
WSL, regardless of whether it was correctly set up or not.

This change only ignores the pyenv command if it's proved to come
from pyenv-win by looking at its full path.
2021-07-26 11:46:15 +02:00
Neil Girdhar
c8a258698d
fix(pyenv): fix pyenv PATH settings with a warning (#9935)
This change fixes the setting of $PATH for pyenv and its shims, while warning
the user about non-interactive shells.

Co-authored-by: Marc Cornellà <hello@mcornella.com>
2021-07-26 11:45:02 +02:00
Randall Leeds
3667f94538
pyenv: run pyenv init with --no-rehash (#8917)
Add --no-rehash to the pyenv init command, which was removed in [#4492].

The rehash was likely disabled because it can affect shell startup times.
It should only be necessary when installing or removing Python versions.

See [pyenv/pyenv#784] and [sorin-ionescu/prezto#1603] for more detail.

[#4492]: https://github.com/ohmyzsh/ohmyzsh/pull/4492
[pyenv/pyenv#784]: https://github.com/pyenv/pyenv/issues/784
[sorin-ionescu/prezto#1603]: https://github.com/sorin-ionescu/prezto/pull/1603
2020-09-09 14:45:34 +02:00
Marc Cornellà
9703111b82 pyenv: ignore $PATH pyenv if on WSL
This solves the problem where the used pyenv is actually the one in a
Windows folder, instead of in WSL.

Fixes #9034
2020-08-04 15:59:00 +02:00
Vlad Dmitrievich
aaa87063a2 pyenv: only run if pyenv not in $PATH (#8462)
This is needed if in between the update of `$PATH` the `$commands` parameter hasn't
been updated, i.e. if there was no `rehash` or `hash -rf` or automatic rehash.

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-01-15 14:08:45 +01:00
Joe Rattazzi
d5e7040ebd pyenv: add README (#8224) 2019-10-07 17:53:18 +02:00
Thomas Kriechbaumer
20ecca2ba9 rbenv: improve rbenv loading based on pyenv (#7626) 2019-05-08 09:51:05 +02:00
Oleg Smelov
a43cef3404 pyenv: detect pyenv from Homebrew faster (#7670) 2019-03-29 22:17:19 +01:00
Marc Cornellà
0aa645f803
pyenv: search the pyenv command if not found (#6811) 2018-05-15 12:07:23 +02:00
Terrance Kennedy
8efcf2776b pyenv plugin refactor (8x faster) (#6165)
* Refactor pyenv plugin to use PATH
2018-04-22 20:03:58 +02:00
Luke Lazurite
dfc03c7bb6 optimize load of pyenv with homebrew (#6142) 2017-11-07 07:57:07 -08:00
Superbil
2c54428d6e
Fixd bug for pyenv plugin
Check pyenv-virtualenv can eval before use it.

Signed-off-by: Superbil <superbil@gmail.com>
2015-10-19 15:13:06 +08:00
Arvind Chembarpu
8a362b2b1f Enable pyenv rehash 2015-10-15 08:44:15 +05:30
Arvind Chembarpu
8a95cedc3b Init pyenv virtualenvs too 2015-10-15 08:43:40 +05:30
Stig Sandbeck Mathisen
613d116cda Add pyenv plugin 2013-11-19 09:12:05 +01:00