8000 zsh-history-enquirer 1.3.1 (new formula) by danielbayley · Pull Request #225007 · Homebrew/homebrew-core · GitHub
[go: up one dir, main page]

Skip to content

zsh-history-enquirer 1.3.1 (new formula) #225007

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions Formula/z/zsh-history-enquirer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
class ZshHistoryEnquirer < Formula
desc "Zsh plugin that enhances history search interaction"
homepage "https://zsh-history-enquirer.zthxxx.me"
url "https://registry.npmjs.org/zsh-history-enquirer/-/zsh-history-enquirer-1.3.1.tgz"
sha256 "dab146c955f167089bbe8f24a79b4a6cabe4c9ce2b8b246eb9fca27eca2bc4ae"
license "MIT"

bottle do
sha256 cellar: :any_skip_relocation, all: "c61e96873b75859cd6d6a9a634df6f432914b96b893b739a14f8579a637ca81f"
end

depends_on "node"

uses_from_macos "zsh"

def install
system "npm", "install", *std_npm_args
bin.install_symlink Dir["#{libexec}/bin/*"]
zsh_function.install "zsh-history-enquirer.plugin.zsh" => "history_enquire"
end

def caveats
<<~EOS
To activate zsh-history-enquirer, add the following to your .zshrc:
autoload -U history_enquire
history_enquire
EOS
end

test do
zsh_command = "autoload -U history_enquire; where history_enquire"
assert_match "history_enquire", shell_output("zsh -ic '#{zsh_command}'")
end
end
Loading
0