mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-30 12:39:48 -05:00
git-now: install zsh completion by default
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
1 parent
4bc41c10e0
commit
0e9554bf71
1 file changed
+5
-12
@@ -1,35 +1,28 @@
|
||||
require 'formula'
|
||||
|
||||
class GitNow < Formula
|
||||
homepage 'https://github.com/iwata/git-now'
|
||||
url 'https://github.com/iwata/git-now.git', :tag => 'v0.1.0.9'
|
||||
version '0.1.0.9'
|
||||
|
||||
head 'https://github.com/iwata/git-now.git', :branch => 'develop'
|
||||
homepage 'https://github.com/iwata/git-now'
|
||||
|
||||
depends_on 'gnu-getopt'
|
||||
|
||||
def options
|
||||
[['--zsh-completion', "Install zsh completions."]]
|
||||
end
|
||||
|
||||
def patches
|
||||
DATA
|
||||
end
|
||||
|
||||
def install
|
||||
system "make", "prefix=#{prefix}", "install"
|
||||
if ARGV.include? '--zsh-completion'
|
||||
zsh_functions_d = share + 'zsh/functions'
|
||||
zsh_functions_d.install "etc/_git-now"
|
||||
end
|
||||
(share+'zsh/functions').install 'etc/_git-now'
|
||||
end
|
||||
|
||||
def caveats; <<-EOS
|
||||
If `--zsh-completion` is specified, zsh completions are installed to:
|
||||
def caveats; <<-EOS.undent
|
||||
Zsh completion has been installed to:
|
||||
#{share}/zsh/functions
|
||||
EOS
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# This patch makes sure GNUtools are used on OSX.
|
||||
|
||||
Reference in new issue
Block a user