forked from mirror/cobra
Modify brew prefix path in macOS system (#1719)
This commit is contained in:
parent
ca8e3c2779
commit
87ea1807f7
|
@ -652,7 +652,7 @@ To load completions for every new session, execute once:
|
||||||
|
|
||||||
#### macOS:
|
#### 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.
|
You will need to start a new shell for this setup to take effect.
|
||||||
`, c.Root().Name()),
|
`, c.Root().Name()),
|
||||||
|
@ -689,7 +689,7 @@ To load completions for every new session, execute once:
|
||||||
|
|
||||||
#### macOS:
|
#### 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.
|
You will need to start a new shell for this setup to take effect.
|
||||||
`, c.Root().Name()),
|
`, c.Root().Name()),
|
||||||
|
|
|
@ -40,7 +40,7 @@ Bash:
|
||||||
# Linux:
|
# Linux:
|
||||||
$ %[1]s completion bash > /etc/bash_completion.d/%[1]s
|
$ %[1]s completion bash > /etc/bash_completion.d/%[1]s
|
||||||
# macOS:
|
# 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:
|
Zsh:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue