Skip to content

Fix zsh completion when compdef is unavailable#13805

Open
LouisLau-art wants to merge 1 commit intopypa:mainfrom
LouisLau-art:fix/zsh-completion-compdef
Open

Fix zsh completion when compdef is unavailable#13805
LouisLau-art wants to merge 1 commit intopypa:mainfrom
LouisLau-art:fix/zsh-completion-compdef

Conversation

@LouisLau-art
Copy link

Fixes #12738.

  • Make zsh completion output resilient when compdef isn't available yet by initializing compinit in interactive shells.
  • Update docs to recommend adding zsh completion to ~/.zshrc (and ensure completion is initialized) instead of ~/.zprofile.
  • Update functional completion test expectations.

Tests:

  • python -m pytest tests/functional/test_completion.py -q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mac zsh auto=completion error "command not found: compdef"

1 participant

Comments