-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhometown-prompt@4.rb
38 lines (29 loc) · 1.13 KB
/
hometown-prompt@4.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
class HometownPromptAT4 < Formula
desc "Feature rich, high performance Git-centric theme for zsh. Version 4.x"
homepage "https://github.com/olets/hometown-prompt"
# using url with tag and revision to resolve submodules
# https://github.com/orgs/Homebrew/discussions/2100
url "https://github.com/olets/hometown-prompt.git",
tag: "v4.0.0",
revision: "8b86c33411a1285d750bab8df5f8d9c14d53ad3d"
head "https://github.com/olets/hometown-prompt.git", branch: "main"
def install
pkgshare.install "hometown.zsh-theme"
pkgshare.install "git-prompt-kit"
pkgshare.install "zsh-transient-prompt"
end
def caveats
<<~EOS
To activate this theme, add the following at the end of your .zshrc:
source #{HOMEBREW_PREFIX}/share/hometown-prompt/hometown.zsh-theme
Then to activate abbreviations in already open sessions, restart
zsh by running
exec zsh
You have installed the latest 4.x version of Hometown prompt.
EOS
end
test do
assert_match "1",
shell_output("zsh -fic '. #{pkgshare}/hometown.zsh-theme && echo $HOMETOWN_LINEBREAK_AFTER_GIT_REF'")
end
end