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

add install suggestion for zsh command-not-found #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mk990
Copy link

@mk990 mk990 commented Oct 8, 2024

No description provided.

@@ -5,6 +5,15 @@ command_not_found_handler() {
if [[ -n "$pkgs" ]]; then
printf '%s may be found in the following packages:\n' "$cmd"
printf ' %s\n' $pkgs[@]
if [[ -n $PKGFILE_PROMPT_INSTALL_MISSING ]]; then
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think we should elide the check here that's done in bash -- invoking this behavior only when pkgfile returns a single result. At best, you offer to install a randomly selected package that might not be what the user wants.

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