From e91aeafc82edb2b79af67e342009cd019cd1ede5 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 4 Jun 2009 19:21:19 +0100 Subject: Created /Library moved brew tool to /bin Moved Forumla and Cellar/homebrew into Library. This way the homebrew core files are more sensibly placed, Cellar is more internally consistent and only generated. And Homebrew is ready for use straight out of the tarball. --- Library/Formula/grc.rb | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Library/Formula/grc.rb (limited to 'Library/Formula/grc.rb') diff --git a/Library/Formula/grc.rb b/Library/Formula/grc.rb new file mode 100644 index 000000000..87a146567 --- /dev/null +++ b/Library/Formula/grc.rb @@ -0,0 +1,70 @@ +require 'brewkit' + +def profile_string + <<-sput +################################################################## >> Homebrew +GRC=`which grc` +if [ "$TERM" != dumb ] && [ -n GRC ] +then + alias colourify="$GRC -es --colour=auto" + alias configure='colourify ./configure' + alias diff='colourify diff' + alias make='colourify make' + alias gcc='colourify gcc' + alias g++='colourify g++' + alias as='colourify as' + alias gas='colourify gas' + alias ld='colourify ld' + alias netstat='colourify netstat' + alias ping='colourify ping' + alias traceroute='colourify /usr/sbin/traceroute' +fi +################################################################## << Homebrew + sput +end + +######################################################################### ARGV +case ARGV[0] + when '--profile' then + puts profile_string + exit 0 +end + +######################################################################### cook +class Grc > ~/.profile + + EOS + end +end \ No newline at end of file -- cgit v1.2.3