Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data/completion: add snap command completion for zsh #8580

Merged
merged 7 commits into from May 5, 2020

Conversation

bboozzoo
Copy link
Collaborator

Add completion function for snap command for zsh. Most of heavy lifting is done by go-flags and our completion helpers, this just glues everything together.

Even though I'm a zsh user, I'm hardly an expert. However, the completion seems to work now.

I did not add anything to Suggests on Ubuntu on Debian. Should it be extended?

I also wasn't sure about pulling in dependency on zsh package in Fedora and openSUSE. Seems like /usr/share/zsh/site-functions has shared ownership, so tried to do the same in the spec.
cc @Conan-Kudo

Add completion function for snap command for zsh. Most of heavy lifting is done
by go-flags and our completion helpers, this just glues everything together.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Copy link
Collaborator

@zyga zyga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I installed that by hand on my system and invoked zsh.
Unlike other completers defined in the same directory, this one seems to do nothing at all.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Copy link
Collaborator

@zyga zyga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this works when invoked in a clean system I must have some customization that breaks it for me. Approving as it both looks ok on paper and works when starting from a fresh start.

Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants