Skip to content
Myr

Add install instructions for zsh on Mac OS (#1417)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

zsh is now the default on Mac OS, but the $_fpath version of the installation instructions are likely to put the completion in a strange location that the user might not expect (e.g. an oh-my-zsh plugin's function directory). So, since Mac OS seems to (as far as I can tell) provide a stable location, this PR recommends using that path instead.

authored by Kyle Lemons · committed by GitHub · parent 5d46ac9 · Browse files · 1 file+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:completions.go+3 added
636 unmodified lines
637638$ echo "autoload -U compinit; compinit" >> ~/.zshrc639640To load completions for every new session, execute once:641# Linux:642$ %[1]s completion zsh > "${fpath[1]}/_%[1]s"643# macOS:644$ %[1]s completion zsh > /usr/local/share/zsh/site-functions/_%[1]s645646You will need to start a new shell for this setup to take effect.647`, c.Root().Name()),648 Args: NoArgs,
126 unmodified lines