From d6dccc3c88c96a46b480795464474f70ce95aa55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Sagaert?= Date: Thu, 9 Jan 2025 16:35:46 +0100 Subject: [PATCH] DNF5 completion support (#11035) * dnf5 completions * address comments (cherry picked from commit 00c7baf68cf77c84ab47a7d256c2a076de0dbc03) --- share/completions/dnf.fish | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/share/completions/dnf.fish b/share/completions/dnf.fish index 3e2d3d072..1e749909d 100644 --- a/share/completions/dnf.fish +++ b/share/completions/dnf.fish @@ -2,6 +2,10 @@ # Completions for the dnf command # +function __dnf_is_dnf5 + path resolve -- $PATH/dnf | path filter | string match -q -- '*/dnf5' +end + function __dnf_list_installed_packages dnf repoquery --cacheonly "$cur*" --qf "%{name}\n" --installed /dev/null | string replace "|" \t end end