Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 890 Bytes

README.md

File metadata and controls

46 lines (28 loc) · 890 Bytes

AWS CDK zsh completion

This is a zsh completion function for AWS CDK.

(日本語の情報 (for Japanese) : https://blog.msysh.me/posts/2023/06/cdk_zsh_completion.html)

Demo

Demonstration cdk zsh completion

Installation

If you use fpath in ~/.zshrc, store _cdk file in a directory which is specified by fpath. And then reload zsh such as exec -l $SHELL.

ex)

If in ~/.zshrc

  :
fpath=($fpath ~/.zsh/completion)
  :

Let's store _cdk file in ~/.zsh/completion

mv _cdk ~/.zsh/completion

And then

exec -l $SHELL

If it doesn't work, deleting ~/.zcompdump file may work

Reference

This topic is discussed at AWS CDK offical repo. I was inspired from it. aws/aws-cdk#24380 (comment)

License

MIT