mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Check for command-not-found command on suse
This commit is contained in:
parent
004b794c82
commit
d81ae2665f
1 changed files with 2 additions and 1 deletions
|
@ -239,7 +239,8 @@ function __fish_config_interactive -d "Initializations that should be performed
|
|||
|
||||
# First check if we are on OpenSUSE since SUSE's handler has no options
|
||||
# and expects first argument to be a command and second database
|
||||
if test -f /etc/SuSE-release
|
||||
# also check if there is command-not-found command.
|
||||
if begin; test -f /etc/SuSE-release; and test -f /usr/bin/command-not-found; end
|
||||
function __fish_command_not_found_handler --on-event fish_command_not_found
|
||||
/usr/bin/command-not-found $argv
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue