blob: 98d5deb319fc73d95784299b604fa3cd149983d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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
|