Since Fedora will use dnf
as default package manager in its next release, is there available autocompletion for zsh/oh-my-zsh/zpretzo?
If not, is there somebody willing to do it? :D
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communitySince Fedora will use dnf
as default package manager in its next release, is there available autocompletion for zsh/oh-my-zsh/zpretzo?
If not, is there somebody willing to do it? :D
a work around :
cp /usr/share/zsh/5.0.7/functions/_yum /usr/share/zsh/5.0.7/functions/_dnf
then :
vi /usr/share/zsh/5.0.7/functions/_dnf
and under vim type:
:%s/yum/dnf/g
save and exit vim ( type :x and Enter) relog under zsh and enjoy. via
My zsh (5.1) already has support for dnf:
% rpm -qf /usr/share/zsh//5.1/functions/_dnf
zsh-5.1-1.fc24.x86_64
Until there is a proper completion module for dnf, you can use yum completion. Just add this simple line into your zshrc:
compdef dnf=yum
This line must be placed anywhere after completion initialization.