class GitDelta < Formula version "0.8.0" desc "A viewer for git and diff output" homepage "https://github.com/dandavison/delta" disable! because: "it is now in homebrew core. Please reinstall it as follows:\nbrew untap dandavison/delta\nbrew install git-delta\n" if OS.mac? url "https://github.com/dandavison/delta/releases/download/#{version}/delta-#{version}-x86_64-apple-darwin.tar.gz" sha256 "c60122857345dd3d43f5cdb66d85d7647dbc60bbabfc03850045ad6e090d2450" elsif OS.linux? url "https://github.com/dandavison/delta/releases/download/#{version}/delta-#{version}-x86_64-unknown-linux-musl.tar.gz" sha256 "f57c6490f511e8ed0526f2171b28d95aca09a0e161b37400fd85d9aa03bfffd7" end conflicts_with "delta" def install bin.install "delta" ohai "To configure git to use delta, run:" ohai "git config --global core.pager \"delta --dark\" # --light for light terminal backgrounds" end test do shell_output "#{bin}/delta --show-syntax-themes" end end