File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments