Bug 2324465 - ZSH is unable to autocomplete dnf5 commands
Summary: ZSH is unable to autocomplete dnf5 commands
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: 41
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
Assignee: rpm-software-management
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-07 20:20 UTC by Rémi Menegon
Modified: 2024-11-08 07:37 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Rémi Menegon 2024-11-07 20:20:32 UTC
Description of problem:
When using the new DNF5, zsh is unable to autocomplete dnf5 commands. dnf5 is now by default on Fedora 41 and so, the autocomplete is broken.

How reproducible: Everytime

Steps to Reproduce:
1. sudo dnf install pyth   => nothing happens
2. [tab][tab]

Actual results: Nothing happens

Expected results: List of packages starting with pyth

Additional info:
/usr/share/zsh/5.9/functions/_dnf is present, but not _dnf5
Using compdef dnf5=dnf has no effect
cp _dnf _dnf5 has no effect

/usr/share/bash-completion/completions/dnf5 is present for bash, and working.

Comment 1 Marek Blaha 2024-11-08 07:37:12 UTC
The issue is tracked upstream in https://github.com/rpm-software-management/dnf5/issues/1826


Note You need to log in before you can comment on or make changes to this bug.