From 5738d6b72d7323f2e6fbdb7a559ebeccdb93d27d Mon Sep 17 00:00:00 2001 From: Kyle Lemons Date: Thu, 1 Jul 2021 08:49:12 -0700 Subject: [PATCH] Add install instructions for zsh on Mac OS (#1417) 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. --- completions.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/completions.go b/completions.go index 3c5f8632..4687674a 100644 --- a/completions.go +++ b/completions.go @@ -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()),