mirror of
https://github.com/iwata/git-now.git
synced 2026-09-10 07:26:29 -04:00
update information of install option
This commit is contained in:
parent
744f095ac1
commit
b09eab99ce
|
|
@ -41,10 +41,14 @@ If you're on a Mac and use [homebrew](http://github.com/mxcl/homebrew), it's sim
|
|||
|
||||
$ brew install --gnu-getopt https://github.com/iwata/git-now/raw/master/git-now.rb
|
||||
|
||||
* copy zsh completion function
|
||||
* copy zsh completion function for zsh users
|
||||
|
||||
$ brew install --zsh-completion https://github.com/iwata/git-now/raw/master/git-now.rb
|
||||
|
||||
Show details
|
||||
|
||||
$ brew options https://github.com/iwata/git-now/raw/master/git-now.rb
|
||||
|
||||
### Manual installation
|
||||
If you prefer a manual installation, please use the following instructions:
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
require 'formula'
|
||||
|
||||
class GitNow < Formula
|
||||
url 'https://github.com/iwata/git-now.git', :tag => 'v0.1.0.8'
|
||||
version '0.1.0.8'
|
||||
url 'https://github.com/iwata/git-now.git', :tag => 'v0.1.0.8.1'
|
||||
version '0.1.0.8.1'
|
||||
head 'https://github.com/iwata/git-now.git', :branch => 'develop'
|
||||
homepage 'https://github.com/iwata/git-now'
|
||||
|
||||
def options
|
||||
[
|
||||
['--gnu-getopt', "Link a gnu-getopt formula"],
|
||||
['--zsh-completion', "copy zsh completion function file to $fpath"]
|
||||
['--zsh-completion', "copy zsh completion function file to #{share}/zsh/functions"]
|
||||
]
|
||||
end
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ class GitNow < Formula
|
|||
if ARGV.include? '--gnu-getopt'
|
||||
system "brew ln gnu-getopt"
|
||||
end
|
||||
if ARGV.include?('--zsh-completion')
|
||||
if ARGV.include? '--zsh-completion'
|
||||
zsh_functions_d = share + 'zsh/functions'
|
||||
zsh_functions_d.install "etc/_git-now"
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue