Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add command-not-found handler for Arch Linux #1925
Arch Linux does not ship with a command-not-found handler, but pkgfile provides the needed functionality and example command-not-found handlers in Bash.
I thought about adding a check for Arch Linux if
Feb 1, 2015
1 check passed
I use archlinux in raspberrypi and this causes all commands executed to run extremely slow. I use pkgfile but this function is bad in my case. I can to set an empty function for __fish_command_not_found_handler, but it looks pretty ugly.You might have an option or setting variable for disable this feature if necessary.
What do you mean? All commands, including those that actually execute, or just those where the command isn't found? The former would be a bug (so please open an issue for that), the latter is (unfortunately) expected.
Quite frankly, I believe exposing tons of special variables is even uglier.
Now, what I'd agree to, unless there's something I'm just not seeing, is to make overriding __fish_command_not_found_handler actually work - currently it doesn't, because it is deleted and then overwritten in __fish_command_not_found_setup (in __fish_config_interactive.fish). I'll try to find out why the current solution does that, to me it looks a bit overzealous.