-
Hi, is there a way to enable autocompletion for dnf packages like in the bash: |
Beta Was this translation helpful? Give feedback.
Answered by
Jan9103
May 3, 2024
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.
1 reply
Answer selected by
Tahinli
-
You can also look at external completers. I think the most popular one is |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: