homebrew-core/Formula/ack.rb
Simon Olofsson 0aae42a362 ack: install zsh completion
Closes Homebrew/homebrew#10106.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-11 14:02:28 -06:00

16 lines
498 B
Ruby

require 'formula'
class Ack < Formula
url "https://github.com/petdance/ack/tarball/1.96"
md5 '1cce67a811c52f9d51fb1195c97795f1'
homepage 'http://betterthangrep.com/'
def install
system "pod2man ack ack.1"
inreplace 'ack.1', '\*(d\-', '\*(d-' # remove a pod2man formatting error
man1.install 'ack.1'
bin.install 'ack'
(prefix+'etc/bash_completion.d').install 'etc/ack.bash_completion.sh'
(share+'zsh/functions').install 'etc/ack.zsh_completion' => '_ack'
end
end