From f8c76d55a7c26ba7061d95ed4ba7fb200f3e6cde Mon Sep 17 00:00:00 2001 From: theVerusDev Date: Fri, 17 Dec 2021 19:02:06 -0500 Subject: feat(cnf): Added support for SUSE-derived operation systems (ZYpp) to CNF plugin (#10508) * Added support for SUSE and derivatives for command-not-found plugin * Updated command-not-found documentation to list support for SUSE and derivatives --- plugins/command-not-found/command-not-found.plugin.zsh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugins/command-not-found/command-not-found.plugin.zsh') diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh index e46350604..cb8a8989c 100644 --- a/plugins/command-not-found/command-not-found.plugin.zsh +++ b/plugins/command-not-found/command-not-found.plugin.zsh @@ -60,3 +60,10 @@ if [[ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]]; th /data/data/com.termux/files/usr/libexec/termux/command-not-found "$1" } fi + +# SUSE and derivates: https://www.unix.com/man-page/suse/1/command-not-found/ +if [[ -x /usr/bin/command-not-found ]]; then + command_not_found_handler() { + /usr/bin/command-not-found "$1" + } +fi -- cgit v1.2.3-70-g09d2