Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add the homebrew formula

  • Loading branch information...
commit 7ca37f50dbf99ea8ab0b1db185d8f7c82dbe58ed 1 parent 324e960
@orefalo authored
Showing with 29 additions and 12 deletions.
  1. +8 −12 README.md
  2. +21 −0 homebrew/g2.rb
View
20 README.md
@@ -37,6 +37,13 @@ This project is an attempt to make the git command line a friendly place: it eas
* Please backup your favorite ~/.gitconfig as g2 with recreate it from scratch.
* For now G2 only runs on **bash**
+###MacOS:
+
+The software is now available via [HomeBrew](http://mxcl.github.com/homebrew/).
+
+ brew install https://raw.github.com/orefalo/g2/master/homebrew/g2.rb
+
+
###Linux (RedHat/Ubuntu):
Please clone the repository, edit either **/etc/bashrc**, **/etc/bash.bashrc** or **~/.bashrc** and add the following code:
@@ -44,12 +51,6 @@ Please clone the repository, edit either **/etc/bashrc**, **/etc/bash.bashrc** o
[[ $PS1 && -f /path/to/g2-install.sh ]] && \
. /path/to/g2-install.sh
-###MacOS:
-
-Same as Linux, make the change in `~/.bash_profile`
-
-The software will soon be available via a [HomeBrew](http://mxcl.github.com/homebrew/) package, stay tuned.
-
###Solaris (Partially tested):
@@ -410,17 +411,12 @@ Distributed under the GNU General Public License, version 2.0.
* g track origin/blabla - if origin/blabla not setup, prompt user to fetch from origin
* g br newbranch (from a branch with no remote) -> does prompt to create the branch
* g2-co: check if branch is local then checkout branch, if remote checkout -b branch origin/branch
-* doc: provide basic guidance on how a commit is performed using g2
-* doc: add typical solutions:
-* doc: talk about gc
-* doc: talk about g am
-* g mode - for advanced users
* g as - aliasing
* g undo needs more validations
-* enforce completions for undo *, and all the upstream commands
## FIXED / DONE
+* Homebrew fomula is now live
* allow g co <hash>
* Many commands are now colorized
* Added tips of the day
View
21 homebrew/g2.rb
@@ -0,0 +1,21 @@
+require 'formula'
+
+class G2 < Formula
+ homepage 'http://orefalo.github.io/g2/'
+ url 'https://github.com/orefalo/g2/archive/v1.0.zip'
+ sha1 '36e03dca8d44afc1f9b16418ab0deaf093ab45c1'
+
+ head 'https://github.com/orefalo/g2.git'
+
+ def install
+ system "make", "prefix=#{prefix}", "install"
+ end
+
+ def caveats; <<-EOS.undent
+
+ For Bash, put something like this in your $HOME/.bashrc:
+ . #{prefix}/g2-install.sh
+
+ EOS
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.