Browse files

tig: install system tigrc as sample

Package tig without installing the default system-wide tigrc to
/usr/local/etc so that it falls back to use the internal (and always
updated) tigrc copy. This avoids problems when new options are added as
seen in jonas/tig#407.

As a caveat, users are offered the option to install the system-wide
tigrc from a tigrc sample.

Fixes Homebrew/legacy-homebrew#43958
Fixes jonas/tig#407

Closes Homebrew/legacy-homebrew#44055.

Signed-off-by: Mike McQuaid <>
  • Loading branch information...
jonas authored and MikeMcQuaid committed Sep 16, 2015
1 parent 07c8826 commit 5600463d68620d68c9745acc490af7f8a16a75cb
Showing with 12 additions and 1 deletion.
  1. +12 −1 Formula/tig.rb
@@ -43,10 +43,21 @@ class Tig < Formula
def install
system "./" if build.head?
system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}"
system "make", "install"
system "make"
# Ensure the configured `sysconfdir` is used during runtime by
# installing in a separate step.
system "make", "install", "sysconfdir=#{prefix/"share/tig/examples"}"
system "make install-doc-man" if build.with? "docs"
bash_completion.install "contrib/tig-completion.bash"
zsh_completion.install "contrib/tig-completion.zsh" => "_tig"
cp "#{bash_completion}/tig-completion.bash", zsh_completion
def caveats; <<-EOS.undent
A sample of the default configuration has been installed to:
to override the system-wide default configuration, copy the sample to:

0 comments on commit 5600463

Please sign in to comment.