summaryrefslogtreecommitdiffstats
path: root/pkg/brew/ripgrep-bin.rb
blob: 014e690633ae46a0bd79eafbe682f7d3bfccf7d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class RipgrepBin < Formula
  version '0.4.0'
  desc "Search tool like grep and The Silver Searcher."
  homepage "https://github.com/BurntSushi/ripgrep"
  url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"
  sha256 "6ac71251909227f8ef7eda27d3080c954843f3665b81e455362c90b2a9c4734a"

  conflicts_with "ripgrep"

  def install
    bin.install "rg"
    man1.install "rg.1"
    
    bash_completion.install "complete/rg.bash-completion"
    fish_completion.install "complete/rg.fish"
    zsh_completion.install "complete/_rg"
  end
end