Browse Source

feat(plugins): add completion plugin for `invoke` (#7311)

Co-authored-by: Quentin Nerden <quentin.nerden@intel.com>
Quentin Nerden 2 years ago
parent
commit
bca73e1858
2 changed files with 15 additions and 0 deletions
  1. 10 0
      plugins/invoke/README.md
  2. 5 0
      plugins/invoke/invoke.plugin.zsh

+ 10 - 0
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)
+```
+

+ 5 - 0
plugins/invoke/invoke.plugin.zsh

@@ -0,0 +1,5 @@
+# Autocompletion for invoke.
+#
+if [ $commands[invoke] ]; then
+  source <(invoke --print-completion-script=zsh)
+fi