···5959(`Stdlib` open, package-qualified `/pkg/...` paths, kind tags like `type-`,
6060section labels, …). Type `.` or `/` and press TAB again to drill in.
61616262-`opam install` puts it under `$OPAM_SWITCH_PREFIX/share/odoc-switchdocs/zsh`.
6363-That directory isn't on zsh's `$fpath` by default, so add it (before
6464-`compinit`) in `~/.zshrc`:
6262+`opam install` puts it under the package's share dir. That directory isn't on
6363+zsh's `$fpath` by default, so add it (before `compinit`) in `~/.zshrc`:
65646665```zsh
6767-fpath=("$OPAM_SWITCH_PREFIX/share/odoc-switchdocs/zsh" $fpath)
6666+fpath=("$(opam var odoc-switchdocs:share)/zsh" $fpath)
6867autoload -U compinit && compinit
6968```
7069
···33# zsh completion for switchdocs.
44#
55# Install: put this file's directory on $fpath before compinit. After
66-# `opam install` it lives under the switch's share dir; add to ~/.zshrc:
66+# `opam install` it lives under the package's share dir; add to ~/.zshrc:
77#
88-# fpath=("$OPAM_SWITCH_PREFIX/share/odoc-switchdocs/zsh" $fpath)
88+# fpath=("$(opam var odoc-switchdocs:share)/zsh" $fpath)
99# autoload -U compinit && compinit
1010#
1111# (or point $fpath at completions/zsh in a source checkout.)