diff options
author | Quentin Nerden <kenden@gmail.com> | 2021-08-10 20:25:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 20:25:08 +0200 |
commit | bca73e18584771fd6db770055dac25b5728764c3 (patch) | |
tree | 01cccf01428f5ed76db2ef6b21bd86b0fa6a7b74 /plugins/invoke | |
parent | ab58594173c04f7fe2155a169d8906ef761ba0fc (diff) | |
download | zsh-bca73e18584771fd6db770055dac25b5728764c3.tar.gz zsh-bca73e18584771fd6db770055dac25b5728764c3.tar.bz2 zsh-bca73e18584771fd6db770055dac25b5728764c3.zip |
feat(plugins): add completion plugin for `invoke` (#7311)
Co-authored-by: Quentin Nerden <quentin.nerden@intel.com>
Diffstat (limited to 'plugins/invoke')
-rw-r--r-- | plugins/invoke/README.md | 10 | ||||
-rw-r--r-- | plugins/invoke/invoke.plugin.zsh | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/plugins/invoke/README.md b/plugins/invoke/README.md new file mode 100644 index 000000000..3f4b88078 --- /dev/null +++ b/plugins/invoke/README.md @@ -0,0 +1,10 @@ +# Invoke plugin + +This plugin adds completion for [invoke](https://github.com/pyinvoke/invoke). + +To use it, add `invoke` to the plugins array in your `~/.zshrc` file: + +```zsh +plugins=(... invoke) +``` + diff --git a/plugins/invoke/invoke.plugin.zsh b/plugins/invoke/invoke.plugin.zsh new file mode 100644 index 000000000..8c807de02 --- /dev/null +++ b/plugins/invoke/invoke.plugin.zsh @@ -0,0 +1,5 @@ +# Autocompletion for invoke. +# +if [ $commands[invoke] ]; then + source <(invoke --print-completion-script=zsh) +fi |