Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
tig: add zsh completion installation for head version
Browse files Browse the repository at this point in the history
See also jonas/tig#433
  • Loading branch information
wkentaro committed Aug 30, 2015
1 parent 7e45de0 commit 635fb25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Library/Formula/tig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class Tig < Formula
homepage "http://jonas.nitro.dk/tig/"
url "http://jonas.nitro.dk/tig/releases/tig-2.1.1.tar.gz"
sha256 "50c5179fd564b829b6b2cec087e66f10cf8799601de19350df0772ae77e4852f"
head "https://github.com/jonas/tig.git"

bottle do
cellar :any
Expand Down Expand Up @@ -32,5 +33,9 @@ def install
system "make", "install"
system "make install-doc-man" if build.with? "docs"
bash_completion.install "contrib/tig-completion.bash"
if build.head?
cp "#{bash_completion}/tig-completion.bash", zsh_completion
zsh_completion.install "contrib/tig-completion.zsh" => "_tig"
end
end
end

0 comments on commit 635fb25

Please sign in to comment.