File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments