-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnb.rb
33 lines (28 loc) · 754 Bytes
/
nb.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require "formula"
class Nb < Formula
homepage "https://github.com/xwmx/nb"
url "https://github.com/xwmx/nb.git",
using: :git,
tag: "7.16.1"
head "https://github.com/xwmx/nb.git"
depends_on "bat"
depends_on "bash"
depends_on "bash-completion@2"
depends_on "git"
depends_on "nmap"
depends_on "pandoc"
depends_on "pygments"
depends_on "ripgrep"
depends_on "tig"
depends_on "w3m"
def install
bin.install "nb"
bin.install "bin/bookmark"
zsh_completion.install "etc/nb-completion.zsh" => "_nb"
fish_completion.install "etc/nb-completion.fish" => "nb.fish"
bash_completion.install "etc/nb-completion.bash" => "nb"
end
test do
system "#{bin}/nb"
end
end