docs: simplify zsh completion instructions to eval in .zshrc

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-19 15:10:28 +01:00
parent 3c0d4ee471
commit 2fa1316f0d
+2 -10
View File
@@ -20,16 +20,8 @@ Bash:
$ echo 'source <(opal completion bash)' >> ~/.bashrc $ echo 'source <(opal completion bash)' >> ~/.bashrc
Zsh: Zsh:
# Option 1: Write to a directory in your $fpath # Add to ~/.zshrc:
$ opal completion zsh > "${fpath[1]}/_opal" eval "$(opal completion zsh)"
# Then restart your shell or run: compinit
# Option 2: Write to a custom directory and add it to fpath
$ mkdir -p ~/.zsh/completions
$ opal completion zsh > ~/.zsh/completions/_opal
# Add to ~/.zshrc (before compinit):
# fpath=(~/.zsh/completions $fpath)
# autoload -Uz compinit && compinit
Fish: Fish:
$ opal completion fish | source $ opal completion fish | source