24 lines
721 B
Ruby
24 lines
721 B
Ruby
class Pure < Formula
|
||
desc "Pretty, minimal and fast ZSH prompt"
|
||
homepage "https://github.com/sindresorhus/pure"
|
||
url "https://github.com/sindresorhus/pure/archive/v1.17.3.tar.gz"
|
||
sha256 "2c8c1b4a8d255603a4a5d9417b75c8d439021c5b345b844f0bdc4bb20e4b6e26"
|
||
license "MIT"
|
||
|
||
bottle do
|
||
sha256 cellar: :any_skip_relocation, all: "d3b9ead9b4d5b61a134ab57cf5516b24b5d9a540efb9a421fbc99e6c980fc2a8"
|
||
end
|
||
|
||
depends_on "zsh" => :test
|
||
depends_on "zsh-async"
|
||
|
||
def install
|
||
zsh_function.install "pure.zsh" => "prompt_pure_setup"
|
||
end
|
||
|
||
test do
|
||
zsh_command = "setopt prompt_subst; autoload -U promptinit; promptinit && prompt -p pure"
|
||
assert_match "❯", shell_output("zsh -c '#{zsh_command}'")
|
||
end
|
||
end
|