From 87ea1807f71dfa4d0bd7058c099b3978b128aea6 Mon Sep 17 00:00:00 2001 From: xuwu Date: Mon, 13 Jun 2022 10:22:49 +0800 Subject: [PATCH] Modify brew prefix path in macOS system (#1719) --- completions.go | 4 ++-- shell_completions.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/completions.go b/completions.go index ce1caab82..3de4e87a1 100644 --- a/completions.go +++ b/completions.go @@ -652,7 +652,7 @@ To load completions for every new session, execute once: #### macOS: - %[1]s completion bash > /usr/local/etc/bash_completion.d/%[1]s + %[1]s completion bash > $(brew --prefix)/etc/bash_completion.d/%[1]s You will need to start a new shell for this setup to take effect. `, c.Root().Name()), @@ -689,7 +689,7 @@ To load completions for every new session, execute once: #### macOS: - %[1]s completion zsh > /usr/local/share/zsh/site-functions/_%[1]s + %[1]s completion zsh > $(brew --prefix)/share/zsh/site-functions/_%[1]s You will need to start a new shell for this setup to take effect. `, c.Root().Name()), diff --git a/shell_completions.md b/shell_completions.md index be17bf8c3..1e2058ed6 100644 --- a/shell_completions.md +++ b/shell_completions.md @@ -40,7 +40,7 @@ Bash: # Linux: $ %[1]s completion bash > /etc/bash_completion.d/%[1]s # macOS: - $ %[1]s completion bash > /usr/local/etc/bash_completion.d/%[1]s + $ %[1]s completion bash > $(brew --prefix)/etc/bash_completion.d/%[1]s Zsh: