Skip to content

Commit

Permalink
zsh-f-sy-h 1.67
Browse files Browse the repository at this point in the history
  • Loading branch information
mogeko committed Dec 8, 2024
1 parent 3f48b1b commit cc39e5c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Formula/z/zsh-f-sy-h.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
class ZshFSyH < Formula
desc "Feature-rich Syntax Highlighting for Zsh"
homepage "https://wiki.zshell.dev/search?q=F-Sy-H"
url "https://github.com/z-shell/F-Sy-H/archive/refs/tags/v1.67.tar.gz"
sha256 "4d8b112b326843443fbbbeb9d8c0694b57c331b91ca6bb1d5f67750f3254e6f5"
license "BSD-3-Clause"
head "https://github.com/z-shell/F-Sy-H.git", branch: "main"

uses_from_macos "zsh" => :test

def install
pkgshare.install Dir["*"]
end

def caveats
<<~EOS
To activate the syntax highlighting, add the following at the end of your .zshrc:
source #{HOMEBREW_PREFIX}/share/zsh-f-sy-h/F-Sy-H.plugin.zsh
EOS
end

test do
assert_match "#{version}\n",
shell_output("zsh -c '. #{pkgshare}/F-Sy-H.plugin.zsh && echo $FAST_HIGHLIGHT_VERSION'")
end
end

0 comments on commit cc39e5c

Please sign in to comment.