File tree 2 files changed +58
-0
lines changed
2 files changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ homebrew-g
2
+ ===============
3
+
4
+ Installation
5
+ ---
6
+
7
+ ``` shell
8
+ brew tap gtool/g
9
+ brew install g
10
+ ```
11
+
12
+ You can also install via URL:
13
+
14
+ ```
15
+ brew install https://raw.github.com/gtool/homebrew-g/master/g.rb
16
+ ```
17
+
18
+ Docs
19
+ ----
20
+
21
+ ` brew help ` , ` man brew ` , or the Homebrew [ wiki] ( http://wiki.github.com/mxcl/homebrew ) .
Original file line number Diff line number Diff line change
1
+ require "formula"
2
+
3
+ class G < Formula
4
+ homepage "https://github.com/gtool/g"
5
+ version "1.0.0"
6
+
7
+ url "https://github.com/gtool/g/archive/v1.0.0.zip"
8
+ sha1 "3753a1f9068270504ee661945049c71116ff99a2"
9
+
10
+ def install
11
+ bin . install Dir [ 'bin/**' ]
12
+ libexec . install Dir [ 'libexec/**' ]
13
+ share . install Dir [ 'share/**' ]
14
+ ( prefix /'completions' ) . install Dir [ 'completions/**' ]
15
+ end
16
+
17
+ def caveats ; <<-EOS . undent
18
+ To enable autocompletion make the following steps:
19
+
20
+ Bash users:
21
+
22
+ echo 'eval "$(g init -)"' >> ~/.bash_profile
23
+ exec bash
24
+
25
+ Zsh users:
26
+
27
+ echo 'eval "$(g init -)"' >> ~/.zshenv
28
+ source ~/.zshenv
29
+
30
+ More information here: https://github.com/gtool/g
31
+ EOS
32
+ end
33
+
34
+ test do
35
+ assert_equal `#{ bin } /g h` . split ( "\n " ) . first , 'Usage: g h [subcommand]'
36
+ end
37
+ end
You can’t perform that action at this time.
0 commit comments