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