-
-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Expand file tree
/
Copy pathsk.rb
More file actions
37 lines (32 loc) · 1.77 KB
/
sk.rb
File metadata and controls
37 lines (32 loc) · 1.77 KB
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
34
35
36
37
class Sk < Formula
desc "Fuzzy Finder in rust!"
homepage "https://github.com/lotabout/skim"
url "https://github.com/lotabout/skim/archive/refs/tags/v0.17.0.tar.gz"
sha256 "c799d1f2e211d8af5bc39fd67fa3270613bc77f43350f7fd013ac6a541400536"
license "MIT"
head "https://github.com/lotabout/skim.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "39f39938c635fd73d229b9af199b51b0fe8a3c7ad96fab88378d4226584d84c4"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "363b48736a64fdeecbe9ed14934cbb7bb16df8343701cd37f6cc2f94f9ad149a"
sha256 cellar: :any_skip_relocation, arm64_ventura: "82bc032650adf306aeb85e6a5007b22a5613e7ec983c31dfc24cf30c362f924a"
sha256 cellar: :any_skip_relocation, sonoma: "272128af9bd58c69aeb08fe5819bb953f29368085386ffa861f9cee12f63bb4c"
sha256 cellar: :any_skip_relocation, ventura: "7670fed6c4d43dae253ef192e43b196a47ecb241c6a2c10467c2800fad72ed29"
sha256 cellar: :any_skip_relocation, arm64_linux: "52acc01de8a892caff6f97c8b6ede3c42fe480b18ffb1c39d566bef033ec8caa"
sha256 cellar: :any_skip_relocation, x86_64_linux: "0159234e18b45fa67ffbdb226562afe6399726ad969d441085176f9a3b53019a"
end
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args(path: "skim")
pkgshare.install "install"
bash_completion.install "shell/key-bindings.bash"
bash_completion.install "shell/completion.bash"
fish_completion.install "shell/key-bindings.fish" => "skim.fish"
zsh_completion.install "shell/key-bindings.zsh"
zsh_completion.install "shell/completion.zsh"
man1.install "man/man1/sk.1", "man/man1/sk-tmux.1"
bin.install "bin/sk-tmux"
end
test do
assert_match(/.*world/, pipe_output("#{bin}/sk -f wld", "hello\nworld"))
end
end