homebrew-core/Formula/zsh-autosuggestions.rb
Igor Kapkov 5d7934191b
zsh-autosuggestions 0.6.3
Closes #41298.

Signed-off-by: Igor Kapkov <igasgeek@me.com>
2019-06-25 18:53:16 +10:00

29 lines
844 B
Ruby

class ZshAutosuggestions < Formula
desc "Fish-like fast/unobtrusive autosuggestions for zsh"
homepage "https://github.com/zsh-users/zsh-autosuggestions"
url "https://github.com/zsh-users/zsh-autosuggestions/archive/v0.6.3.tar.gz"
sha256 "06f5c5bfedc469dc51f7a2db26ddc2dbcd2e742ea82d8057a7fa9e215c39db4c"
bottle :unneeded
def install
pkgshare.install "zsh-autosuggestions.zsh"
end
def caveats
<<~EOS
To activate the autosuggestions, add the following at the end of your .zshrc:
source #{HOMEBREW_PREFIX}/share/zsh-autosuggestions/zsh-autosuggestions.zsh
You will also need to force reload of your .zshrc:
source ~/.zshrc
EOS
end
test do
assert_match "history",
shell_output("zsh -c '. #{pkgshare}/zsh-autosuggestions.zsh && echo $ZSH_AUTOSUGGEST_STRATEGY'")
end
end