dotfiles.2022/_home/dot_sz.shrc.d/bash.post/99_chezmoi.completion

14 lines
451 B
Plaintext
Raw Normal View History

2022-09-29 22:29:13 +00:00
[[ -n "$BASH_COMPLETION_EXIST" && -n $(which-command chezmoi) ]] \
&& source <( \
chezmoi completion bash \
| add-alias-to-bash-completion-code chezmoi cz czx \
| add-alias-to-bash-completion-code chezmoi czx \
) \
echo done.
# && if [[ $(type -t compopt) = "builtin" ]]; then
# complete -o default -F __git_complete czg
# else
# complete -o default -o nospace -F __git_complete czg
# fi