`zsh` completion for `swupd`

There is a bash compeltion for swupd and I’ve written one for zsh, which actually provides more functionalities than the official bash completion.

I’ve made a pull request a while ago but it’s still not adopted. So I’m posting it here.

Install

  1. Download it from here.
  2. Put it in your fpath. It’s done.
3 Likes

Can you please share the link to the PR for future reference too?

Added, it’s

@otavio.pontes @castulo can you help us on this

1 Like

Thanks for the PR. I have just reviewed it.

1 Like

Hi, is this deployed?
Looking at the PR, it seems a file named _swupd should be present in /usr/share/zsh/site-functions, but it’s not on my CLR install (30340).

Try checking in the next update. The PR was merged but a swupd-client release wasn’t made including it until just yesterday.

1 Like