Commit Graph
1 Commits
Author SHA1 Message Date
Wu Zhenyu 72816547ec 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
2023-02-16 21:59:06 +08:00