From 72816547ec035ca6dafae10a574f9a0451f9c0f8 Mon Sep 17 00:00:00 2001 From: Wu Zhenyu Date: Thu, 16 Feb 2023 21:51:30 +0800 Subject: [PATCH] Add texdoc `texdoc --print-completion zsh` will generate something like ``` compdef __texdoc texdoc __texdoc() { ... } ``` So put ``` (( $+functions[__texdoc] )) || eval "$(texdoc --print-completion zsh)" && __texdoc ``` can make it out of box for users to avoid add `eval "$(texdoc --print-completion zsh)"` to their zshrc --- src/_texdoc | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 src/_texdoc diff --git a/src/_texdoc b/src/_texdoc new file mode 100644 index 0000000..25cf920 --- /dev/null +++ b/src/_texdoc @@ -0,0 +1,2 @@ +#compdef texdoc +(( $+functions[__texdoc] )) || eval "$(texdoc --print-completion zsh)" && __texdoc