From bca73e18584771fd6db770055dac25b5728764c3 Mon Sep 17 00:00:00 2001 From: Quentin Nerden Date: Tue, 10 Aug 2021 20:25:08 +0200 Subject: [PATCH] feat(plugins): add completion plugin for `invoke` (#7311) Co-authored-by: Quentin Nerden --- plugins/invoke/README.md | 10 ++++++++++ plugins/invoke/invoke.plugin.zsh | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 plugins/invoke/README.md create mode 100644 plugins/invoke/invoke.plugin.zsh 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