From 94dda264e456ff30c9ca89fff25d6779367aad20 Mon Sep 17 00:00:00 2001 From: Motonori Iwata Date: Sat, 22 Oct 2011 08:46:55 +0900 Subject: [PATCH] fixed --zsh-completion option --- git-now.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/git-now.rb b/git-now.rb index 473e53b..0a55a2a 100644 --- a/git-now.rb +++ b/git-now.rb @@ -1,8 +1,8 @@ require 'formula' class GitNow < Formula - url 'https://github.com/iwata/git-now.git', :tag => 'v0.1.0.7' - version '0.1.0.7' + url 'https://github.com/iwata/git-now.git', :tag => 'v0.1.0.8' + version '0.1.0.8' head 'https://github.com/iwata/git-now.git', :branch => 'develop' homepage 'https://github.com/iwata/git-now' @@ -27,7 +27,8 @@ class GitNow < Formula system "brew ln gnu-getopt" end if ARGV.include?('--zsh-completion') - "#{share}/zsh/functions".install "etc/_git-now" + zsh_functions_d = share + 'zsh/functions' + zsh_functions_d.install "etc/_git-now" end end