File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 "========================================"
You can’t perform that action at this time.
0 commit comments