Skip to content

Commit

Permalink
Add install instructions for zsh on Mac OS (#1417)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kylelemons authored Jul 1, 2021
1 parent 5d46ac9 commit 5738d6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions completions.go
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,10 @@ to enable it. You can execute the following once:
$ echo "autoload -U compinit; compinit" >> ~/.zshrc
To load completions for every new session, execute once:
# Linux:
$ %[1]s completion zsh > "${fpath[1]}/_%[1]s"
# macOS:
$ %[1]s completion zsh > /usr/local/share/zsh/site-functions/_%[1]s
You will need to start a new shell for this setup to take effect.
`, c.Root().Name()),
Expand Down

0 comments on commit 5738d6b

Please sign in to comment.