mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-08-07 06:08:39 +02:00
fix: do not try to load old completion with new version
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
ac3d376fa0
commit
3e778c440f
1 changed files with 7 additions and 6 deletions
|
|
@ -24,13 +24,14 @@ fi
|
||||||
[[ -n "$_pipenv_fresh_version" ]] && print -r -- "$_pipenv_fresh_version" >| "$_pipenv_version_cache"
|
[[ -n "$_pipenv_fresh_version" ]] && print -r -- "$_pipenv_fresh_version" >| "$_pipenv_version_cache"
|
||||||
} &|
|
} &|
|
||||||
|
|
||||||
if is-at-least 2026.5.0 "$_pipenv_version" && (( $+commands[register-python-argcomplete] )); then
|
if is-at-least 2026.5.0 "$_pipenv_version"; then
|
||||||
# argcomplete-based completion
|
# pipenv >= 2026.5.0: argcomplete-based completion (no legacy fallback)
|
||||||
|
if (( $+commands[register-python-argcomplete] )); then
|
||||||
autoload -Uz bashcompinit
|
autoload -Uz bashcompinit
|
||||||
bashcompinit
|
bashcompinit
|
||||||
|
|
||||||
eval "$(register-python-argcomplete pipenv)"
|
eval "$(register-python-argcomplete pipenv)"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
# legacy Click-based completion via _PIPENV_COMPLETE
|
# legacy Click-based completion via _PIPENV_COMPLETE
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue