If you install keyring by your package manager (apt, pacman, nix, homebrew, etc),
these shell completions should have been packaged and you don't need generate
them by yourself.
After install shell completions, you can enable shell completions by:
bash: install bash-completion, and
. /usr/share/bash-completion/bash_completion in your bashrc.
zsh: autoload -Uz compinit && compinit in your zshrc, and
grep -w keyring ~/.zcompdump to check if it is installed correctly:
Fixes #608.
If you install keyring by
pip install 'keyring[completion]'
, you can generate shell completions by:Note: the path of
/usr/share
is only for GNU/Linux mostly. If you use other OSs, try:If you install keyring by your package manager (apt, pacman, nix, homebrew, etc), these shell completions should have been packaged and you don't need generate them by yourself.
After install shell completions, you can enable shell completions by:
. /usr/share/bash-completion/bash_completion
in your bashrc.zsh:
autoload -Uz compinit && compinit
in your zshrc, andgrep -w keyring ~/.zcompdump
to check if it is installed correctly:$ grep -w keyring ~/.zcompdump 'keyring' '_keyring'