Skip to content

Commit e803a00

Browse files
authored
Merge pull request #225007 from danielbayley/zsh-history-enquirer
zsh-history-enquirer 1.3.1 (new formula)
2 parents 6fd4d71 + c2a0ccb commit e803a00

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Formula/z/zsh-history-enquirer.rb

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
class ZshHistoryEnquirer < Formula
2+
desc "Zsh plugin that enhances history search interaction"
3+
homepage "https://zsh-history-enquirer.zthxxx.me"
4+
url "https://registry.npmjs.org/zsh-history-enquirer/-/zsh-history-enquirer-1.3.1.tgz"
5+
sha256 "dab146c955f167089bbe8f24a79b4a6cabe4c9ce2b8b246eb9fca27eca2bc4ae"
6+
license "MIT"
7+
8+
bottle do
9+
sha256 cellar: :any_skip_relocation, all: "c61e96873b75859cd6d6a9a634df6f432914b96b893b739a14f8579a637ca81f"
10+
end
11+
12+
depends_on "node"
13+
14+
uses_from_macos "zsh"
15+
16+
def install
17+
system "npm", "install", *std_npm_args
18+
bin.install_symlink Dir["#{libexec}/bin/*"]
19+
zsh_function.install "zsh-history-enquirer.plugin.zsh" => "history_enquire"
20+
end
21+
22+
def caveats
23+
<<~EOS
24+
To activate zsh-history-enquirer, add the following to your .zshrc:
25+
autoload -U history_enquire
26+
history_enquire
27+
EOS
28+
end
29+
30+
test do
31+
zsh_command = "autoload -U history_enquire; where history_enquire"
32+
assert_match "history_enquire", shell_output("zsh -ic '#{zsh_command}'")
33+
end
34+
end

0 commit comments

Comments
 (0)