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
Make overriding cnf-handler work #2331
Do this by renaming the __fish_command_not_found_handler used during
Now disabling cnf-handling can be done via defining an empty
It's quite possible that I haven't understood the full complexity of the situation so I've decided to open a PR instead of just pushing. Of course solving #845 could make all of this moot.
referenced this pull request
Aug 24, 2015
There's a point here that's probably not as intuitive as it should be - if you define
There's no great solution I can see for it - one would be to have a way to check if an event handler is registered for a particular event, a way to register already defined functions as event handlers might work as well (if it can't get double-defined). The former is kinda nice, the latter is kinda un-orthogonal (since this specially named function would magically become an event handler no matter how it's defined).
Regardless, this solves a problem and doesn't hurt or prevent doing something better, so I'll merge this anyway now.