Skip to content

Commit 87ea180

Browse files
authored
Modify brew prefix path in macOS system (#1719)
1 parent ca8e3c2 commit 87ea180

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

completions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ To load completions for every new session, execute once:
652652
653653
#### macOS:
654654
655-
%[1]s completion bash > /usr/local/etc/bash_completion.d/%[1]s
655+
%[1]s completion bash > $(brew --prefix)/etc/bash_completion.d/%[1]s
656656
657657
You will need to start a new shell for this setup to take effect.
658658
`, c.Root().Name()),
@@ -689,7 +689,7 @@ To load completions for every new session, execute once:
689689
690690
#### macOS:
691691
692-
%[1]s completion zsh > /usr/local/share/zsh/site-functions/_%[1]s
692+
%[1]s completion zsh > $(brew --prefix)/share/zsh/site-functions/_%[1]s
693693
694694
You will need to start a new shell for this setup to take effect.
695695
`, c.Root().Name()),

shell_completions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Bash:
4040
# Linux:
4141
$ %[1]s completion bash > /etc/bash_completion.d/%[1]s
4242
# macOS:
43-
$ %[1]s completion bash > /usr/local/etc/bash_completion.d/%[1]s
43+
$ %[1]s completion bash > $(brew --prefix)/etc/bash_completion.d/%[1]s
4444
4545
Zsh:
4646

0 commit comments

Comments
 (0)