From 7e265f9e4038c44439b4cf4f2701a9a4a1b622dc Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Sun, 1 May 2016 11:41:19 +0200 Subject: [PATCH] zsh-navigation-tools 2.0.5 (new formula) Closes #734. Signed-off-by: Martin Afanasjew --- Formula/zsh-navigation-tools.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Formula/zsh-navigation-tools.rb diff --git a/Formula/zsh-navigation-tools.rb b/Formula/zsh-navigation-tools.rb new file mode 100644 index 0000000000..b60cf4d1e6 --- /dev/null +++ b/Formula/zsh-navigation-tools.rb @@ -0,0 +1,27 @@ +class ZshNavigationTools < Formula + desc "Zsh curses-based tools, e.g. multi-word history searcher" + homepage "https://github.com/psprint/zsh-navigation-tools" + url "https://github.com/psprint/zsh-navigation-tools/archive/v2.0.5.tar.gz" + sha256 "f599a36693b9bacaccdb5ce9939f5be3695b59ef5b84485f618164bb2c77fe95" + + def install + system "make", "install", "PREFIX=#{prefix}" + end + + def caveats; <<-EOS.undent + To run zsh-navigation-tools, add the following at the end of your .zshrc: + fpath+=( #{HOMEBREW_PREFIX}/share/zsh-navigation-tools ) + source #{HOMEBREW_PREFIX}/share/zsh-navigation-tools/zsh-navigation-tools.plugin.zsh + + You will also need to force reload of your .zshrc: + source ~/.zshrc + EOS + end + + test do + # This compiles package's main file + # Zcompile is very capable of detecting syntax errors + cp pkgshare/"n-list", testpath + system "zsh", "-c", "zcompile n-list" + end +end