Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added zsh completion files. This feature allows zsh users to easily reference all options for keepassxc by typing into the zsh console:
keepassxc-cli command --<tab key>
--option1 --Description of option1
--option2 --Description of option2
...
I have included install.txt which contains instructions for end users and Linux distribution package maintaners on where it should be installed to.
Screenshots
Testing strategy
Place all of the _keepassxc* files (exclude install.txt) in the following folder:
/usr/share/zsh/site-functions/
Set permissions:
chmod 644 /usr/share/zsh/site-functions/_keepassxc*
Add the following lines to the file "~/.zshrc":
autoload -Uz compinit
compinit
Restart the terminal
Type into console "keepassxc-cli<space key>" then hit <tab key> to see the commands for the program.
Type in "keepassxc-cli edit -" then hit <tab key> to see the option arguments for the command.
It is possible to string options together, for example you can continue completing after "keepassxc-cli edit --key-file <file> by typing "<space key>-" and hitting <tab key> again to see additional options. The first option (e.g. --key-file in this example) does not appear again in the new list that appears since it was already used.
Type of change