Use OpenSUSE command-not-found via $PATH

We check the full $PATH, so it's not guaranteed that it is in /usr/bin.
This commit is contained in:
Fabian Homborg 2020-09-05 08:41:11 +02:00
parent fbe56a84c7
commit 0131974378

View File

@ -23,7 +23,7 @@ if functions -q __fish_command_not_found_handler
# but the same name and path as Ubuntu's.
else if contains -- suse $os || contains -- sles $os && type -q command-not-found
function fish_command_not_found
/usr/bin/command-not-found $argv[1]
command-not-found $argv[1]
end
# Check for Fedora's handler
else if test -f /usr/libexec/pk-command-not-found