From 1908cf95deceeb93e2e3304090c872e2e9c0e33b Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 11 Apr 2021 13:13:12 +0200 Subject: [PATCH] Double default cnf-handler This was defined in config.fish. Just define it here again, it's trivial. --- share/functions/fish_command_not_found.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/functions/fish_command_not_found.fish b/share/functions/fish_command_not_found.fish index a6c43f920..8891f4326 100644 --- a/share/functions/fish_command_not_found.fish +++ b/share/functions/fish_command_not_found.fish @@ -11,6 +11,10 @@ if test -r /etc/os-release string replace -r '^ID(?:_LIKE)?\s*=(.*)' '$1' | string trim -c '\'"' | string split " ") end +function __fish_default_command_not_found_handler + printf "fish: Unknown command: %s\n" (string escape -- $argv[1]) >&2 +end + # If an old handler already exists, defer to that. if functions -q __fish_command_not_found_handler function fish_command_not_found