Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically add completion for globally installed packages #2506

Open
kai687 opened this issue Feb 6, 2025 · 0 comments
Open

Automatically add completion for globally installed packages #2506

kai687 opened this issue Feb 6, 2025 · 0 comments
Labels
feature New feature or request triage Issue needs triage

Comments

@kai687
Copy link

kai687 commented Feb 6, 2025

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.

@kai687 kai687 added feature New feature or request triage Issue needs triage labels Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request triage Issue needs triage
Development

No branches or pull requests

1 participant