class RipgrepBin < Formula version '12.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 "ebbc518ac019fc78b6429ec2e64b823c59b15a6f942436f43b9afc23c9aad9ea" elsif OS.linux? url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-unknown-linux-musl.tar.gz" sha256 "ab3c8b4b030102d8fcdde62d3467ea5219e65aa3b42d268e85e9d1c14624149a" end conflicts_with "ripgrep" def install bin.install "rg" man1.install "doc/rg.1" bash_completion.install "complete/rg.bash" fish_completion.install "complete/rg.fish" zsh_completion.install "complete/_rg" end end