Skip to content

Commit 2517a89

Browse files
committed
feat: add post-install completion setup caveats to brew formula
1 parent f1389ed commit 2517a89

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.goreleaser.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ brews:
8585
install: |
8686
bin.install "odo"
8787
generate_completions_from_executable(bin/"odo", "completion")
88+
caveats: |
89+
Shell completions have been installed. To enable them, add the following
90+
to your ~/.zshrc (if not already present):
91+
92+
autoload -Uz compinit && compinit
93+
94+
Then restart your shell or run: source ~/.zshrc
95+
96+
For bash, add to ~/.bashrc:
97+
[[ -r "$(brew --prefix)/etc/profile.d/bash_completion.sh" ]] && \
98+
source "$(brew --prefix)/etc/profile.d/bash_completion.sh"
8899
test: |
89100
system "#{bin}/odo", "--version"
90101

0 commit comments

Comments
 (0)