-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhometown-prompt@3.rb
37 lines (28 loc) · 1.09 KB
/
hometown-prompt@3.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
class HometownPromptAT3 < Formula
desc "Feature rich, high performance Git-centric theme for zsh. Version 3.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: "v3.1.5",
revision: "1fb3cb3665c5ae1465d5463abdabca6ca14a0b9f"
head "https://github.com/olets/hometown-prompt.git", branch: "v3"
def install
pkgshare.install "hometown.zsh-theme"
pkgshare.install "git-prompt-kit"
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 3.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