diff --git a/etc/bash_completion.d/dnf b/etc/bash_completion.d/dnf index d95cb17cfd..9b7c666946 100644 --- a/etc/bash_completion.d/dnf +++ b/etc/bash_completion.d/dnf @@ -149,9 +149,7 @@ _dnf_show_packages() shift if ! _dnf_is_path "$cur"; then - COMPREPLY+=( $(compgen -W '$( ${__dnf_python_exec} -c \ - "import sys; from dnf.cli import completion_helper as ch;ch.main(sys.argv[1:])" \ - $cmd "$@" "$cur" -d 0 -q -C 2>/dev/null )') ) + COMPREPLY+=( $(compgen -W "$( _dnf_commands_helper $cmd "$@" "$cur" )") ) fi [[ $COMPREPLY ]] && return