Skip to content

fix: autoload tag added to zsh completions - #351

Merged
RivoLink merged 1 commit into
RivoLink:mainfrom
orangepigment:fix/zsh-completions-autoload
Nov 3, 2026
Merged

RivoLink merged 1 commit into
RivoLink:mainfrom
orangepigment:fix/zsh-completions-autoload

Conversation

@orangepigment

Copy link
Copy Markdown
Contributor

Hi!

I have a found a minor problem with zsh completions script.
Usually a zsh completion script has a tag #compdef name , which lets zsh automatically enable autocompletion for name if the script is in the FPATH env variable.

My use case is:

leaf --auto-complete zsh:dump >~/.completions/_leaf
# ~/.completions dir is in FPATH on my machine, so there is no need to modify .zshrc file or explicitly source the script

This PR fixes that problem by adding a missing tag.

See either of the links for details:

@github-actions

Copy link
Copy Markdown

Warning

The head commit isn't GPG-signed.
Maintainers will re-sign it on merge.

@orangepigment
orangepigment force-pushed the fix/zsh-completions-autoload branch 2 times, most recently from 87fdc7f to dec67b5 Compare October 28, 2026 19:16
@RivoLink
RivoLink force-pushed the fix/zsh-completions-autoload branch from dec67b5 to bf12c30 Compare November 3, 2026 18:50

@RivoLink RivoLink left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for this PR!

@RivoLink
RivoLink merged commit b92e2b2 into RivoLink:main Nov 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants