Skip to content

Commit d121bfe

Browse files
zsh-history-enquirer 1.3.1
Update Formula/z/zsh-history-enquirer.rb Co-authored-by: Daeho Ro <[email protected]>
1 parent 87423db commit d121bfe

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Formula/z/zsh-history-enquirer.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
depends_on "node"
9+
10+
uses_from_macos "zsh"
11+
12+
def install
13+
system "npm", "install", *std_npm_args
14+
bin.install_symlink Dir["#{libexec}/bin/*"]
15+
zsh_function.install "zsh-history-enquirer.plugin.zsh" => "history_enquire"
16+
end
17+
18+
def caveats
19+
<<~EOS
20+
To activate zsh-history-enquirer, add the following to your .zshrc:
21+
autoload -U history_enquire
22+
history_enquire
23+
EOS
24+
end
25+
26+
test do
27+
zsh_command = "autoload -U history_enquire; where history_enquire"
28+
assert_match "history_enquire", shell_output("zsh -ic '#{zsh_command}'")
29+
end
30+
end

0 commit comments

Comments
 (0)