Skip to content

Commit 934f4ee

Browse files
committed
zsh-syntax-highlighting: make the bottles uniform
Also switch to tarball.
1 parent e741aa9 commit 934f4ee

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Formula/z/zsh-syntax-highlighting.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
class ZshSyntaxHighlighting < Formula
22
desc "Fish shell like syntax highlighting for zsh"
33
homepage "https://github.com/zsh-users/zsh-syntax-highlighting"
4-
url "https://github.com/zsh-users/zsh-syntax-highlighting.git",
5-
tag: "0.8.0",
6-
revision: "db085e4661f6aafd24e5acb5b2e17e4dd5dddf3e"
4+
url "https://github.com/zsh-users/zsh-syntax-highlighting/archive/refs/tags/0.8.0.tar.gz"
5+
sha256 "5981c19ebaab027e356fe1ee5284f7a021b89d4405cc53dc84b476c3aee9cc32"
76
license "BSD-3-Clause"
87
head "https://github.com/zsh-users/zsh-syntax-highlighting.git", branch: "master"
98

@@ -20,6 +19,9 @@ class ZshSyntaxHighlighting < Formula
2019
uses_from_macos "zsh" => [:build, :test]
2120

2221
def install
22+
# Make the bottles uniform (modifying a comment with /usr/local path)
23+
inreplace "highlighters/main/main-highlighter.zsh", "/usr/local/bin", "#{HOMEBREW_PREFIX}/bin"
24+
2325
system "make", "install", "PREFIX=#{prefix}"
2426
end
2527

0 commit comments

Comments
 (0)