From 720f4ad7421d5d44164ec783577853ed34eda23f Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 19 Oct 2017 19:06:03 +0200 Subject: [PATCH] Also allow "sles" as OS-ID for command-not-found-handler "Suse Linux Enterprise Server". Fixes #4447. --- share/functions/__fish_config_interactive.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish index 5d8c92ff7..e29c1fc2c 100644 --- a/share/functions/__fish_config_interactive.fish +++ b/share/functions/__fish_config_interactive.fish @@ -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]