From b1c5e003ef38dd2e8e55dd81619a0c050ee73219 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 4 Mar 2021 18:29:49 +0100 Subject: [PATCH] fish_command_not_found: Actually define default handler Fixes #7777 --- share/functions/fish_command_not_found.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/share/functions/fish_command_not_found.fish b/share/functions/fish_command_not_found.fish index 50c98c6b8..db568fd69 100644 --- a/share/functions/fish_command_not_found.fish +++ b/share/functions/fish_command_not_found.fish @@ -68,5 +68,9 @@ else if type -q pacman __fish_default_command_not_found_handler $argv[1] pacman -F $paths end +else + # Use standard fish command not found handler otherwise + function fish_command_not_found --on-event fish_command_not_found + __fish_default_command_not_found_handler $argv + end end -# Use standard fish command not found handler otherwise