Skip to content

Automatically add completion for globally installed packagesΒ #2506

Open
@kai687

Description

@kai687

What problem are you trying to solve?

When I install global packages, their completion functions aren't available in my shell (ZSH).
I recently changed from Homebrew to DevBox and really miss the completion from globally installed packages.

(Found a solution that works for me, but it wasn't obvious and it would be nice to at least document it somewhere).

What solution would you like?

If it's possible, I'd like to add the directory, where the completion functions are installed, to fpath for ZSH (there might be equivalents for other shells) when initializing devbox as a global package manager.

Alternatives you've considered

Alternatively, if it's not feasible to implement this technically, maybe you could just document it?

In my case (ZSH user), I can just add fpath=(~/.local/share/devbox/global/default/.devbox/nix/profile/default/share/zsh/site-functions $fpath)" to my .zshrc file before calling compinit, and everything works. Maybe there's an even shorter path I can include, or a command that returns the correct path cross-platform.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or requesttriageIssue needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions