Skip to content

Commit 7e267e4

Browse files
authored
brew: cleanup cu on uninstall (#205)
1 parent 387bfbe commit 7e267e4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.goreleaser.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ homebrew_casks:
8989
FileUtils.mkdir_p fish_completion
9090
FileUtils.cp "#{staged_path}/completions/cu.fish", "#{fish_completion}/cu.fish"
9191
end
92+
uninstall: |
93+
# Remove cu symlink
94+
FileUtils.rm_f "#{HOMEBREW_PREFIX}/bin/cu"
95+
96+
# Remove cu completions
97+
FileUtils.rm_f "#{HOMEBREW_PREFIX}/etc/bash_completion.d/cu"
98+
FileUtils.rm_f "#{HOMEBREW_PREFIX}/share/zsh/site-functions/_cu"
99+
FileUtils.rm_f "#{HOMEBREW_PREFIX}/share/fish/vendor_completions.d/cu.fish"
92100
93101
checksum:
94102
name_template: "checksums.txt"

0 commit comments

Comments
 (0)