32 lines
952 B
Ruby
32 lines
952 B
Ruby
class ZshViMode < Formula
|
|
desc "Better and friendly vi(vim) mode plugin for ZSH"
|
|
homepage "https://github.com/jeffreytse/zsh-vi-mode"
|
|
url "https://github.com/jeffreytse/zsh-vi-mode/archive/refs/tags/v0.8.5.tar.gz"
|
|
sha256 "98ae59b83ee1886929d5c2af5e5b8a2512828cc312815bdfb34db74f2dc0476a"
|
|
license "MIT"
|
|
head "https://github.com/jeffreytse/zsh-vi-mode.git", branch: "master"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "555f8d09b4f7820e41c8ddda5b31ce0745342dd93536de1293523ce5c7b93aae"
|
|
end
|
|
|
|
uses_from_macos "zsh"
|
|
|
|
def install
|
|
pkgshare.install "zsh-vi-mode.zsh"
|
|
pkgshare.install "zsh-vi-mode.plugin.zsh"
|
|
end
|
|
|
|
def caveats
|
|
<<~EOS
|
|
To activate the zsh vi mode, add the following line to your .zshrc:
|
|
source #{opt_pkgshare}/zsh-vi-mode.plugin.zsh
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
assert_match "zsh-vi-mode",
|
|
shell_output("zsh -c '. #{pkgshare}/zsh-vi-mode.plugin.zsh && zvm_version'")
|
|
end
|
|
end
|