pkasemir / find-the-command

Interactive command-not-found hook for bash and zsh, that uses pacman as a backend (BTW, this shit should be completely re-written as it's very ugly)
Other
27 stars 3 forks source link

fzf argument length too long #2

Open pkasemir opened 2 years ago

pkasemir commented 2 years ago
find-the-command: "sdcc" is not found locally, searching in repositories...
find-the-command: "sdcc" may be found in package "community/sdcc"
exec: Failed to execute process '/usr/bin/fzf': An argument or exported variable exceeds the OS argument length limit.

Maybe too many files or something, should detect when this happens and either truncate or see if fzf can take pipe or other solution.

kgraefe commented 1 year ago

I run into this when trying to find ansible-playbook in zsh:

❯ LANG=C ansible-playbook
find-the-command: "ansible-playbook" is not found locally, searching in repositories...
find-the-command: "ansible-playbook" may be found in package "extra/ansible-core"
command_not_found_handle:30: argument list too long: fzf