Skip to content

Commit

Permalink
fzf 0.8.1 (new formula)
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#27348.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
junegunn authored and MikeMcQuaid committed Mar 9, 2014
1 parent 97ec38d commit 463c29c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions 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

0 comments on commit 463c29c

Please sign in to comment.