class RipgrepBin < Formula version '14.1.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 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" elsif OS.linux? url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-unknown-linux-musl.tar.gz" sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" 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