Skip to content

completion script increases shell startup time considerably (zsh) #1505

Open
@Emerentius

Description

@Emerentius

I've set up the completion script exactly as the instructions in rustup completions --help say:
added fpath += ~/.zfunc just before compinit in .zshrc
rustup completions zsh > ~/.zfunc/_rustup

Startup is noticeably slow. From my rough measurements, ~0.5s is added purely from the completion script.
This does not happen when I put it in another location on the fpath, like /usr/share/zsh/vendor-completions/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions