From b09eab99ceca60f6559193b98f86c4e37b2a0d6b Mon Sep 17 00:00:00 2001 From: iwata Date: Sat, 22 Oct 2011 19:21:04 +0900 Subject: [PATCH] update information of install option --- README.mdown | 6 +++++- git-now.rb | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.mdown b/README.mdown index f5e1a53..8f47f36 100644 --- a/README.mdown +++ b/README.mdown @@ -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: diff --git a/git-now.rb b/git-now.rb index 0a55a2a..f4e04c5 100644 --- a/git-now.rb +++ b/git-now.rb @@ -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