{"action":"opened","issue":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2231","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2231/labels{/name}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2231/comments","events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2231/events","html_url":"https://github.com/fish-shell/fish-shell/issues/2231","id":96111768,"number":2231,"title":"Custom event handlers","user":{"login":"perfaram","id":1699131,"avatar_url":"https://avatars.githubusercontent.com/u/1699131?v=3","gravatar_id":"","url":"https://api.github.com/users/perfaram","html_url":"https://github.com/perfaram","followers_url":"https://api.github.com/users/perfaram/followers","following_url":"https://api.github.com/users/perfaram/following{/other_user}","gists_url":"https://api.github.com/users/perfaram/gists{/gist_id}","starred_url":"https://api.github.com/users/perfaram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perfaram/subscriptions","organizations_url":"https://api.github.com/users/perfaram/orgs","repos_url":"https://api.github.com/users/perfaram/repos","events_url":"https://api.github.com/users/perfaram/events{/privacy}","received_events_url":"https://api.github.com/users/perfaram/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-20T17:08:37Z","updated_at":"2015-07-20T17:08:37Z","closed_at":null,"body":"Hi !\r\nI'm currently writing my own prompt for fish... But I'm having trouble with event handling. I wrote a custom \"command not found\" handler, tagging my function with `--on-event fish_command_not_found`.\r\nBut my function isn't the only one getting executed when `fish_command_not_found` is fired. The default handler gets executed right after mine, and the only solution I found was to erase a functions... oddly, it was `__fish_command_not_found_setup`.\r\nCould anyone explain me why it is so, and how I can definitively override any other functions responding to `fish_command_not_found` ?\r\nThanks in advance !"}}