From cc39e5c942891b466c470cf38b33ea791ce4c95c Mon Sep 17 00:00:00 2001 From: Mogeko Date: Mon, 9 Dec 2024 02:53:08 +0800 Subject: [PATCH 1/2] zsh-f-sy-h 1.67 --- Formula/z/zsh-f-sy-h.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Formula/z/zsh-f-sy-h.rb diff --git a/Formula/z/zsh-f-sy-h.rb b/Formula/z/zsh-f-sy-h.rb new file mode 100644 index 0000000000000..8b0001b0bbc4c --- /dev/null +++ b/Formula/z/zsh-f-sy-h.rb @@ -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 From 2f42de964561e68fa6a488bd36328fdbf04ef51d Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Mon, 9 Dec 2024 19:36:58 +0000 Subject: [PATCH 2/2] zsh-f-sy-h: add 1.67 bottle. --- Formula/z/zsh-f-sy-h.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Formula/z/zsh-f-sy-h.rb b/Formula/z/zsh-f-sy-h.rb index 8b0001b0bbc4c..01eeb532d25df 100644 --- a/Formula/z/zsh-f-sy-h.rb +++ b/Formula/z/zsh-f-sy-h.rb @@ -6,6 +6,15 @@ class ZshFSyH < Formula license "BSD-3-Clause" head "https://github.com/z-shell/F-Sy-H.git", branch: "main" + bottle do + sha256 cellar: :any_skip_relocation, arm64_sequoia: "219d0141922740e742d765b4e55a3b6331cd0deaab671c07a19a085b04e2f7ef" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "219d0141922740e742d765b4e55a3b6331cd0deaab671c07a19a085b04e2f7ef" + sha256 cellar: :any_skip_relocation, arm64_ventura: "219d0141922740e742d765b4e55a3b6331cd0deaab671c07a19a085b04e2f7ef" + sha256 cellar: :any_skip_relocation, sonoma: "cd302983d8a9fc3a2764b8e1b1936c8b2d261193650ba5d3efa1bac506291a3b" + sha256 cellar: :any_skip_relocation, ventura: "cd302983d8a9fc3a2764b8e1b1936c8b2d261193650ba5d3efa1bac506291a3b" + sha256 cellar: :any_skip_relocation, x86_64_linux: "219d0141922740e742d765b4e55a3b6331cd0deaab671c07a19a085b04e2f7ef" + end + uses_from_macos "zsh" => :test def install