Commit graph

660 commits

Author SHA1 Message Date
John Shimek
9368bebc35 Lots of optimizations to improving pyenv init -.
This is only meant to be an example. There's a lot of simplification
that works because my usage of Pyenv is simple.
2024-06-11 17:32:46 -05:00
Ivan Pozdeev
0963c8ac02 2.4.2 2024-06-08 23:49:46 +03:00
Ivan Pozdeev
aabaa89243 2.4.1 2024-05-09 14:31:11 +03:00
Ivan Pozdeev
21eef94ea0 2.4.0 2024-04-07 21:29:02 +03:00
Ivan Pozdeev
b80d5fd28d 2.3.37 2024-04-07 20:48:40 +03:00
Alex Hedges
02e1d4a293
Handle case where pyenv-commands --sh returns nothing (#2908)
In exceptional cases (custom installation, malfunctions elsewhere), `pyenv-commands --sh` may return nothing.
In non-Fish, this would cause "syntax error near unexpected token `)'" in `pyenv()`.

Bash does not allow to specify a `case` option that would never match.
This works around it by defaulting to `/`. Commands, being filenames, can never match it.
In Fish, nothing needs to be done: it apparently does interpret a `case` without argument as one that never matches.
2024-02-26 00:07:52 +03:00
Ivan Pozdeev
5e4879a2bc v2.3.36 2024-02-14 00:58:44 +03:00
Anton Petrov
dfde39650e
v2.3.35 2023-12-08 13:22:44 +03:00
Anton Petrov
99d74e78f7
v2.3.34 2023-12-06 06:56:03 +03:00
Anton Petrov
2fb5b9e9a3
v2.3.33 2023-11-27 15:54:43 +03:00
Anton Petrov
d312301099
v2.3.32 2023-11-12 18:53:11 +03:00
native-api
fb2c65f149
Make pyenv init output insertable to startup files (#2838) 2023-11-12 12:41:13 +03:00
native-api
087793a660
Make adding $PYENV_ROOT/bin to PATH independent of other software (#2837)
Fixes breakage in WSL with Pyenv-win installed in the host system;
doesn't affect other supported installation scenarios.
2023-11-12 11:58:17 +03:00
Anton Petrov
54f7a7c046
v2.3.31 2023-10-22 12:35:53 +03:00
Anton Petrov
9c8f92cf4e
v2.3.30 2023-10-16 21:36:46 +03:00
Anton Petrov
bb38acd994
v2.3.29 2023-10-06 08:05:47 +03:00
Anton Petrov
28e7000b48
v2.3.28 2023-10-02 19:54:39 +03:00
Anton Petrov
c844b332ca
v2.3.27 2023-09-17 10:48:10 +03:00
Anton Petrov
bdfb80cc12
v2.3.26 2023-09-07 11:36:40 +03:00
Anton Petrov
7ec5c30451
Update pyenv---version 2023-08-27 01:29:50 -07:00
Anton Petrov
791ae90aef
2.3.24 2023-08-11 02:20:36 -07:00
Anton Petrov
e908606554
v2.3.23 2023-07-22 16:08:35 +03:00
Anton Petrov
64c70feb08
Update pyenv---version 2023-07-08 22:37:24 +03:00
Anton Petrov
ba8b58f90d
2.3.21 2023-06-20 13:52:17 +03:00
native-api
fe76b05445
Fix occasional 'libexec/pyenv-latest: line 39: printf: write error: Broken pipe' (#2729) 2023-06-20 03:04:06 +03:00
Anton Petrov
43f40eca05
v2.3.20 2023-06-12 10:33:36 +03:00
Anton Petrov
e79dd97afa
v2.3.19 2023-06-08 12:18:16 +03:00
Anton Petrov
3fa5812bfc
Update pyenv---version 2023-05-25 11:23:39 +03:00
Kevin Schoedel
920ef1456a
Support ksh alternative names (#2697)
* Support ksh versions

Korn shell had two major versions: ’88 and ’93. Some systems have
ksh installed under the name `ksh93`. A few systems (maybe only
Solaris now) also have a `ksh88`. A few others use the `pdksh` (’88)
or `mksh` (’93) implementations, originated before ksh was open source.

Limit to currently-used versions

---------

Co-authored-by: Kevin Schoedel <kps@datatravelandexperiments.com>
2023-05-13 01:24:57 +03:00
native-api
20189ff06f
Fix not showing symlink contents for unselected versions in pyenv versions (#2675) 2023-04-08 01:12:09 +03:00
Anton Petrov
9a4f9c2511
2.3.17 2023-04-06 06:58:52 +03:00
Shengqi Chen
b1ee6c93c4
Try locate readlink first in pyenv-hooks, fix #2654 (#2655)
* Remove all use of `greadlink`, fix #2654

Signed-off-by: Harry Chen <i@harrychen.xyz>

* revert greadlink back in tests

---------

Signed-off-by: Harry Chen <i@harrychen.xyz>
Co-authored-by: Anton Petrov <anton.a.petrov@gmail.com>
2023-03-28 11:25:27 +03:00
Petrov
9fad1f46c5
Update pyenv---version 2023-03-24 08:26:20 +03:00
Anton Petrov
f507d08064
Update pyenv---version 2023-03-10 09:03:23 +03:00
Anton Petrov
904dd5f828
Update pyenv---version 2023-03-01 08:25:31 +03:00
Florian Schüller
68918e69b7
Support for BusyBox version of `head' (#2629) 2023-02-22 20:11:48 +03:00
Rafał
86a4423bbb
Fix indentation (#2620) 2023-02-16 00:10:36 +03:00
Anton Petrov
0ab9683e58
2.3.13 2023-02-15 08:15:35 +03:00
laggardkernel
a7b181c3ca Fix link resolving in pyenv-versions
Co-Authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
2023-02-06 19:22:38 +03:00
Ivan Pozdeev
72c5b034ca Avoid the need to filter out envs in `pyenv-latest' 2023-02-02 18:24:17 +03:00
Ivan Pozdeev
446411dc64 Streamline `pyenv-versions --bare'
Achieves a ~20% speedup.
As it's used in pyenv-latest, this affects all version lookups
2023-02-02 18:15:47 +03:00
Ivan Pozdeev
9fe80f28e5 Add pyenv versions' option to skip envs for pyenv-latest' 2023-02-02 18:15:13 +03:00
native-api
9248255f70
Show symlink contents in non-bare `pyenv versions' (#2609)
* Change other tests to use the newly-created convenience function
2023-02-02 17:24:19 +03:00
native-api
368e04f3fa
Fix pyenv-latest to ignore virtualenvs (#2608)
* Add test, exclude alphas as well
2023-02-02 15:15:16 +03:00
Anton Petrov
76e93b073e
2.3.12 2023-01-30 08:19:43 +03:00
native-api
c20fc7bd6a
Fix pyenv which to support auto-resolved prefixes (#2601)
* Resolve version name that hooks see
* Avoid a 2nd iteration over configured versions
2023-01-22 18:22:26 +03:00
Anton Petrov
906246da4c
2.3.11 2023-01-15 12:43:34 +03:00
Anton Petrov
579c34e570
2.3.10 2023-01-10 19:03:00 +03:00
Ian Chen
f897c50202
Fix non-bash output while detecting shell (#2561)
Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
2022-12-25 02:35:03 +03:00
Anton Petrov
2bb59169db
2.3.9 2022-12-19 07:52:52 +03:00