-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzsh-job-queue@2.rb
43 lines (31 loc) · 1.26 KB
/
zsh-job-queue@2.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
34
35
36
37
38
39
40
41
42
43
class ZshJobQueueAT2 < Formula
desc "Zsh global synchronous job queue plugin. Version 2.x"
homepage "https://github.com/olets/zsh-job-queue"
url "https://github.com/olets/zsh-job-queue/archive/refs/tags/v2.0.1.tar.gz"
sha256 "a1b1e2fe5aeb6ccb4830c9a162796881fb8eba255dcedf357aaa8e78e2dd6958"
head "https://github.com/olets/zsh-job-queue.git", branch: "v2"
def install
pkgshare.install "zsh-job-queue.zsh"
man1.mkpath
man1.install "man/man1/job-queue.1"
end
def caveats
<<~EOS
To activate zsh-job-queue, add the following at the end of your .zshrc:
source #{HOMEBREW_PREFIX}/share/zsh-job-queue/zsh-job-queue.zsh
If you prefer to manage the package with Homebrew but load it with
a plugin manager, you may be able to load the above path with your
plugin manager.
Then restart zsh. Run:
exec zsh
You have installed the latest 2.x version of zsh-job-queue.
Refer to https://zsh-job-queue.olets.dev for more information,
including whether there a newer major version is available
and how to pin a specific major version.
EOS
end
test do
assert_match "0",
shell_output("zsh -c '. #{pkgshare}/zsh-job-queue.zsh && [[ -n $JOB_QUEUE_DEBUG ]]; echo $?'")
end
end