class RipgrepBin < Formula version '15.0.0' desc "Recursively search directories for a regex pattern." homepage "https://github.com/BurntSushi/ripgrep" if OS.mac? url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz" sha256 "64811cb24e77cac3057d6c40b63ac9becf9082eedd54ca411b475b755d334882" elsif OS.linux? url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-unknown-linux-musl.tar.gz" sha256 "1c9297be4a084eea7ecaedf93eb03d058d6faae29bbc57ecdaf5063921491599" end conflicts_with "ripgrep" def install bin.install "rg" man1.install "doc/rg.1" bash_completion.install "complete/rg.bash" zsh_completion.install "complete/_rg" end end