Also allow "sles" as OS-ID for command-not-found-handler

"Suse Linux Enterprise Server".

Fixes #4447.
This commit is contained in:
Fabian Homborg 2017-10-19 19:06:03 +02:00
parent 7004c30f95
commit 720f4ad742

View file

@ -297,7 +297,7 @@ function __fish_config_interactive -d "Initializations that should be performed
# First check if we are on OpenSUSE since SUSE's handler has no options
# but the same name and path as Ubuntu's.
if contains -- suse $os
if contains -- suse $os; or contains -- sles $os
and type -q command-not-found
function __fish_command_not_found_handler --on-event fish_command_not_found
/usr/bin/command-not-found $argv[1]