aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJunegunn Choi2014-03-08 09:59:40 +0900
committerMike McQuaid2014-03-09 12:30:39 +0000
commit6208674fb78150c70ffcb6b1d9de518e95d1d0f8 (patch)
tree3d74805998e5f26618cbdffea26c5eba1e446433 /Library/Formula
parentc178f5da93069e41ab68138fd5136cf029cd1f04 (diff)
downloadhomebrew-6208674fb78150c70ffcb6b1d9de518e95d1d0f8.tar.bz2
fzf 0.8.1 (new formula)
Closes #27348. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/fzf.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/fzf.rb b/Library/Formula/fzf.rb
new file mode 100644
index 000000000..f5b8f3835
--- /dev/null
+++ b/Library/Formula/fzf.rb
@@ -0,0 +1,23 @@
+require "formula"
+
+class Fzf < Formula
+ homepage "https://github.com/junegunn/fzf"
+ url "https://github.com/junegunn/fzf/archive/0.8.1.tar.gz"
+ sha1 "c77827b6a1ca60eb8273ab20eb97c1f78c375452"
+
+ def install
+ prefix.install "install", "fzf", "fzf-completion.bash", "fzf-completion.zsh"
+ bin.install_symlink prefix/"fzf"
+ end
+
+ def caveats; <<-EOS.undent
+ To install useful keybindings and fuzzy completion:
+ #{prefix}/install
+ EOS
+ end
+
+ test do
+ (testpath/"list").write %w[hello world].join($/)
+ `cat #{testpath/"list"} | fzf -f wld`.chomp == "world"
+ end
+end