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
This commit is contained in:
Wu Zhenyu 2023-02-16 21:51:30 +08:00
parent 828fe2bd3c
commit 72816547ec
No known key found for this signature in database
GPG Key ID: 0E07E1F8C0EC10AD
1 changed files with 2 additions and 0 deletions

2
src/_texdoc Normal file
View File

@ -0,0 +1,2 @@
#compdef texdoc
(( $+functions[__texdoc] )) || eval "$(texdoc --print-completion zsh)" && __texdoc