Skip to content

Commit f953d8c

Browse files
authored
Merge pull request #200481 from mogeko/zsh-f-sy-h
zsh-f-sy-h 1.67 (new formula)
2 parents 4775bad + 2f42de9 commit f953d8c

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Formula/z/zsh-f-sy-h.rb

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
class ZshFSyH < Formula
2+
desc "Feature-rich Syntax Highlighting for Zsh"
3+
homepage "https://wiki.zshell.dev/search?q=F-Sy-H"
4+
url "https://github.com/z-shell/F-Sy-H/archive/refs/tags/v1.67.tar.gz"
5+
sha256 "4d8b112b326843443fbbbeb9d8c0694b57c331b91ca6bb1d5f67750f3254e6f5"
6+
license "BSD-3-Clause"
7+
head "https://github.com/z-shell/F-Sy-H.git", branch: "main"
8+
9+
bottle do
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "219d0141922740e742d765b4e55a3b6331cd0deaab671c07a19a085b04e2f7ef"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "219d0141922740e742d765b4e55a3b6331cd0deaab671c07a19a085b04e2f7ef"
12+
sha256 cellar: :any_skip_relocation, arm64_ventura: "219d0141922740e742d765b4e55a3b6331cd0deaab671c07a19a085b04e2f7ef"
13+
sha256 cellar: :any_skip_relocation, sonoma: "cd302983d8a9fc3a2764b8e1b1936c8b2d261193650ba5d3efa1bac506291a3b"
14+
sha256 cellar: :any_skip_relocation, ventura: "cd302983d8a9fc3a2764b8e1b1936c8b2d261193650ba5d3efa1bac506291a3b"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "219d0141922740e742d765b4e55a3b6331cd0deaab671c07a19a085b04e2f7ef"
16+
end
17+
18+
uses_from_macos "zsh" => :test
19+
20+
def install
21+
pkgshare.install Dir["*"]
22+
end
23+
24+
def caveats
25+
<<~EOS
26+
To activate the syntax highlighting, add the following at the end of your .zshrc:
27+
source #{HOMEBREW_PREFIX}/share/zsh-f-sy-h/F-Sy-H.plugin.zsh
28+
EOS
29+
end
30+
31+
test do
32+
assert_match "#{version}\n",
33+
shell_output("zsh -c '. #{pkgshare}/F-Sy-H.plugin.zsh && echo $FAST_HIGHLIGHT_VERSION'")
34+
end
35+
end

0 commit comments

Comments
 (0)