27 lines
751 B
Ruby
27 lines
751 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.2.tar.gz"
|
|
sha256 "888d68b451fc3221c2ee1648dbfbff38e524048b2c78620a244650fc76946c28"
|
|
license "MIT"
|
|
|
|
bottle :unneeded
|
|
|
|
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 at the end of 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 && echo $ZVM_NAME'")
|
|
end
|
|
end
|