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

Support tab completion in zsh #9

Open
MartinMartimeo opened this issue Jul 24, 2015 · 2 comments
Open

Support tab completion in zsh #9

MartinMartimeo opened this issue Jul 24, 2015 · 2 comments

Comments

@MartinMartimeo
Copy link

No tab completion seems to be available.

@Gibheer
Copy link
Owner

Gibheer commented Jul 26, 2015

Is that something we can include in the binary or does it has to be provided separately?

edit: If we include this, maybe should also include the completion for bash?

@MartinMartimeo
Copy link
Author

There are different approaches how to implement tab completion in shell

You can provide a source file to be included that calls complete (that works for zsh and bash) and handle the tab completion information. There is a tutorial here: http://www.tldp.org/LDP/abs/html/tabexpansion.html. It has the advanges that when providing pkictl via a ppa we also can just drop in the file to /etc/bash_completion.d/

Superior to that you can directly contribute to the zsh repository and provide a tab completion script (I find them somehow easier than the 'old' bash completion functions).

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

No branches or pull requests

2 participants