-
Hi, is there a way to enable autocompletion for dnf packages like in the bash: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
in nushell you have to write completions for external programs yourself (or copy someone elses solution). i have never used dnf, but to give you an idea how it could roughly look in your configuration heres is a guess: def "complete dnf pacakges" [] {
dnf list --all | lines
}
export extern "dnf install" [
--yes(-y) # accept all prompts
...packages: string@"complete dnf packages"
] |
Beta Was this translation helpful? Give feedback.
-
You can also look at external completers. I think the most popular one is |
Beta Was this translation helpful? Give feedback.
in nushell you have to write completions for external programs yourself (or copy someone elses solution).
it seems as if noone has published a usable one for dnf yet (only this).
i have never used dnf, but to give you an idea how it could roughly look in your configuration heres is a guess: