Skip to content

Conversation

@IsaacOscar
Copy link
Collaborator

This makes a few changes to the documentation, reflecting the changes made by dnf5 (#32).
Commit ab4cd24 is overkill, but is necessary if you want to use a cnf that is not available in your path as "command-not-found". In particular, together with df878e8, the Readme instructions now show how to use your manually built cnf with bash, zsh, and fish (the only difference being which file to source).

To avoid merge conflicts, this pull request assumes the previous one (#34), but it's mostly independent. So please ignore the first two listed commits.

openSUSE's dnf5 package adds /etc/dnf/repos.d to the default repo directory list.
So this makes cnf search that as well.
This gives an error if it can't detect a supported package manager.
This just makes the examples in the documentation match the current
output format.
The man page also instructs you on how to update the repository chache
that is queried.
This also modifies the zsh file to use the COMMAND_NOT_FOUND_BIN
variable, just like the bash one.
This mentions that cnf support is already included in fish.

It also adds a command_not_found.fish script, but you only need to use that if:
	command-not-found is not in your path, or not the one you want to use
	fish has detected another command not found handler, and prefers that

Note that overriding the command not found behaviour is only avilable
since fish version 1.23.1.
This was referenced Aug 30, 2025
@vyskocilm vyskocilm merged commit 25d06e8 into openSUSE:main Aug 30, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants