Skip to content

Commit cc39e5c

Browse files
committed
zsh-f-sy-h 1.67
1 parent 3f48b1b commit cc39e5c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
uses_from_macos "zsh" => :test
10+
11+
def install
12+
pkgshare.install Dir["*"]
13+
end
14+
15+
def caveats
16+
<<~EOS
17+
To activate the syntax highlighting, add the following at the end of your .zshrc:
18+
source #{HOMEBREW_PREFIX}/share/zsh-f-sy-h/F-Sy-H.plugin.zsh
19+
EOS
20+
end
21+
22+
test do
23+
assert_match "#{version}\n",
24+
shell_output("zsh -c '. #{pkgshare}/F-Sy-H.plugin.zsh && echo $FAST_HIGHLIGHT_VERSION'")
25+
end
26+
end

0 commit comments

Comments
 (0)