Skip to content

Commit d15b0f9

Browse files
committed
chore: modify instruction post_install
1 parent b8f3d03 commit d15b0f9

1 file changed

Lines changed: 5 additions & 14 deletions

File tree

.goreleaser.yaml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,8 @@ brews:
4747
post_install: |
4848
zshrc = File.expand_path("~/.zshrc")
4949
script_line = "source \"#{HOMEBREW_PREFIX}/etc/tab-commit-gpt.zsh\""
50-
if File.writable?(zshrc)
51-
content = File.read(zshrc) rescue ""
52-
unless content.include?(script_line)
53-
File.open(zshrc, "a") do |f|
54-
f.puts "\n# Added by tab-commit-gpt"
55-
f.puts script_line
56-
end
57-
ohai "Added tab-commit-gpt to ~/.zshrc"
58-
end
59-
else
60-
opoo "~/.zshrc is not writable. Please run the following command to add tab-commit-gpt to your .zshrc:"
61-
puts
62-
puts " echo '#{script_line}' >> ~/.zshrc"
63-
end
50+
ohai "===== [!!! 🚀 ACTION REQUIRED !!!] ====="
51+
ohai "Please run the following command to add tab-commit-gpt to your .zshrc:"
52+
puts
53+
puts " echo '#{script_line}' >> ~/.zshrc"
54+
ohai "========================================"

0 commit comments

Comments
 (0)