summaryrefslogtreecommitdiff
path: root/plugins/command-not-found/command-not-found.plugin.zsh
diff options
context:
space:
mode:
authortheVerusDev <richard.p23@protonmail.com>2021-12-17 19:02:06 -0500
committerGitHub <noreply@github.com>2021-12-17 16:02:06 -0800
commitf8c76d55a7c26ba7061d95ed4ba7fb200f3e6cde (patch)
tree83e37112fe9afbe9960e87dd9494ef43b2cf1b88 /plugins/command-not-found/command-not-found.plugin.zsh
parenta150d8a7c0040de5a1b0246728dc3c2af3b4c423 (diff)
downloadzsh-f8c76d55a7c26ba7061d95ed4ba7fb200f3e6cde.tar.gz
zsh-f8c76d55a7c26ba7061d95ed4ba7fb200f3e6cde.tar.bz2
zsh-f8c76d55a7c26ba7061d95ed4ba7fb200f3e6cde.zip
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
Diffstat (limited to 'plugins/command-not-found/command-not-found.plugin.zsh')
-rw-r--r--plugins/command-not-found/command-not-found.plugin.zsh7
1 files changed, 7 insertions, 0 deletions
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